MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / pluck

Function pluck

lib/web/jshint.js:8283–8285  ·  view source on GitHub ↗

* Gets the property value of `path` from all elements in `collection`. * * @static * @memberOf _ * @category Collection * @param {Array|Object|string} collection The collection to iterate over. * @param {Array|string} path The path of the property to pluck. * @retu

(collection, path)

Source from the content-addressed store, hash-verified

8281 * // => [36, 40] (iteration order is not guaranteed)
8282 */
8283 function pluck(collection, path) {
8284 return map(collection, property(path));
8285 }
8286
8287 /**
8288 * Reduces `collection` to a value which is the accumulated result of running

Callers

nothing calls this directly

Calls 2

mapFunction · 0.70
propertyFunction · 0.70

Tested by

no test coverage detected