SyntaxFix
Write A Post
Hire A Developer
Questions
Using Array.prototype.map:
Array.prototype.map
function getFields(input, field) { return input.map(function(o) { return o[field]; }); }
See the above link for a shim for pre-ES5 browsers.