var people = [ {firstName : \"Thein\", city : \"ny\", qty : 5}, {firstName : \"Michael\", city : \"ny\", qty : 3}, {firstName : \"Bloom\", city : \"nj\", qty
Yep, I wish pluck had an option of passing an array, but in the meantime, you could do:
pluck
const pluckFields = (arr, fields) => _.map(arr, item => _.pick(item, fields))