JSFiddle - React, Tailwind, and code Playground
by pankaj agrawal
JavaScript
var values = {name: 'misko', gender: 'male'};
var log = [];
angular.forEach(values, function(value, key) {
//console.log(key + ': ' + value);
});
var values = {name: 'misko', gender: 'male'};
var log = [];
angular.forEach(values, function(value, key) {
//console.log(key + ': ' + value);
});
values = [
{
"Name" : "Thomas",
"Password" : "thomasTheKing"
},
{
"Name" : "Linda",
"Password" : "lindatheQueen"
}
];
angular.forEach(values, function(value, key){
angular.forEach(value,function(v1,k1){//this is nested angular.forEach loop
console.log(k1+":"+v1);
});
//console.log(key + ': ' + value);
});