Answers for "validate if property can do a foreach nodejs"

56

javascript foreach

var colors = ['red', 'blue', 'green'];

colors.forEach(function(color) {
  console.log(color);
});
Posted by: Guest on June-27-2019
4

loop an object properties in ts

Object.keys(obj).forEach(e => console.log(`key=${e}  value=${obj[e]}`));
Posted by: Guest on May-14-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language