Description
This is similar to utils/pluck
; however, we want to elide input argument validation, add support accessor arrays, and add support for an assign
API.
Signature:
pluck( x, prop )
pluck.assign( x, prop, out, stride, offset )
Example usage:
var x = [
{
'a': 1
},
{
'a': 2
},
{
'a': 3
}
];
var y = pluck( x, 'a' );
// returns [ 1, 2, 3 ]
Time estimate without AI: 3hrs
Time estimate with AI: 1-2hrs