3 ms·
Good call...and for those not necessarily using something underscore.js-like (thought almost always nice-to-have): var report = ['name', 'dob']; var person
by wilmoore 14y ago
Good call...and for those not necessarily using something underscore.js-like (thought almost always nice-to-have):
var report = ['name', 'dob'];
var person = { name: 'Andrew', dob: '1980/03/23' };
report.forEach(function(prop){
console.log(person[prop]);
});