You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1014 B
31 lines
1014 B
/** |
|
* lodash 3.0.0 (Custom Build) <https://lodash.com/> |
|
* Build: `lodash modern modularize exports="npm" -o ./` |
|
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> |
|
* Based on Underscore.js 1.7.0 <http://underscorejs.org/LICENSE> |
|
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors |
|
* Available under MIT license <https://lodash.com/license> |
|
*/ |
|
|
|
/** |
|
* The base implementation of `_.values` and `_.valuesIn` which creates an |
|
* array of `object` property values corresponding to the property names |
|
* returned by `keysFunc`. |
|
* |
|
* @private |
|
* @param {Object} object The object to query. |
|
* @param {Array} props The property names to get values for. |
|
* @returns {Object} Returns the array of property values. |
|
*/ |
|
function baseValues(object, props) { |
|
var index = -1, |
|
length = props.length, |
|
result = Array(length); |
|
|
|
while (++index < length) { |
|
result[index] = object[props[index]]; |
|
} |
|
return result; |
|
} |
|
|
|
module.exports = baseValues;
|
|
|