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

Function baseValues

lib/web/jshint.js:4276–4285  ·  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 va

(object, props)

Source from the content-addressed store, hash-verified

4274 * @returns {Object} Returns the array of property values.
4275 */
4276 function baseValues(object, props) {
4277 var index = -1,
4278 length = props.length,
4279 result = Array(length);
4280
4281 while (++index < length) {
4282 result[index] = object[props[index]];
4283 }
4284 return result;
4285 }
4286
4287 /**
4288 * The base implementation of `_.dropRightWhile`, `_.dropWhile`, `_.takeRightWhile`,

Callers 3

valuesFunction · 0.85
valuesInFunction · 0.85
templateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected