Skip to content

Instantly share code, notes, and snippets.

@robwormald
Last active September 3, 2015 22:20
Show Gist options
  • Save robwormald/5fe26a3ee0b3b61ca8e0 to your computer and use it in GitHub Desktop.
Save robwormald/5fe26a3ee0b3b61ca8e0 to your computer and use it in GitHub Desktop.
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