Answers for "how to loop object keys to get values"

5

javascript iterate object key values

Object.entries(obj).forEach(([key, value]) => {
	console.log(key, value);
});
Posted by: Guest on March-30-2020
2

js get all values of object

Object.values(object1)
Posted by: Guest on February-21-2020

Code answers related to "how to loop object keys to get values"

Code answers related to "Javascript"

Browse Popular Code Answers by Language