I\'m running an express.js app that has a few apis feeding data to dropdown boxes. The data returned is in the form:
[ { key: \'blah\',
Using lodash,
Since lodash 4.x the _.pluck function has been removed in support to map function.
so you can achieve the desired task by:
import _ from 'lodash' _.map(items, 'key');
Ref: What happened to Lodash _.pluck?