Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

for...in...loop

const obj = {
	a: 1,
	b: 2,
	c: 3,
	d: 4
}

for (const key in obj) {
	console.log( obj[key] )
}

// Result: 1, 2, 3, 4
Source by bitsofco.de #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
4+1 =