Open chtulhu6662000 opened 10 years ago
For instance:
var fruits = [ { name: 'orange', colour: 'orange' }, { name: 'banana', colour: 'yellow' } ]; get(fruits[0], function() { if (whatever) {return 'colour';} }); // Results: 'orange' or undefined
Or am I thinking about this the wrong way? Where I should instead look at using filter/filterWith to achieve something similar?
I am asking because I seem to want to do the same thing with pluck/pluckWith (ie: pluck arbitrary properties).
For instance:
Or am I thinking about this the wrong way? Where I should instead look at using filter/filterWith to achieve something similar?
I am asking because I seem to want to do the same thing with pluck/pluckWith (ie: pluck arbitrary properties).