Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript loop through object values

var myObj = {foo: "bar", baz: "baz"};
Object.values(myObj).map((val) => {
console.log(val);
})
// "bar" "baz"
 
PREVIOUS NEXT
Tagged: #javascript #loop #object #values
ADD COMMENT
Topic
Name
8+7 =