Skip to content

Instantly share code, notes, and snippets.

@robwormald
Last active Sep 3, 2015
Embed
What would you like to do?
var a = [{q : 2}, {q : 3}];
var qs = a.map(function(obj){ return obj.q });
//how will i use a 'for' loop to return a new array like that will look like this [2, 3] ?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment