MCPcopy
hub / github.com/lodash/lodash / baseValues

Function baseValues

lodash.js:1047–1051  ·  view source on GitHub ↗

* The base implementation of `_.values` and `_.valuesIn` which creates an * array of `object` property values corresponding to the property names * of `props`. * * @private * @param {Object} object The object to query. * @param {Array} props The property names to get values for.

(object, props)

Source from the content-addressed store, hash-verified

1045 * @returns {Object} Returns the array of property values.
1046 */
1047 function baseValues(object, props) {
1048 return arrayMap(props, function(key) {
1049 return object[key];
1050 });
1051 }
1052
1053 /**
1054 * Checks if a `cache` value for `key` exists.

Callers 3

valuesFunction · 0.85
valuesInFunction · 0.85
templateFunction · 0.85

Calls 1

arrayMapFunction · 0.85

Tested by

no test coverage detected