mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 11:27:50 +00:00
Make baseValues accept props instead of a keysFunc.
This commit is contained in:
@@ -2672,13 +2672,12 @@
|
|||||||
* returned by `keysFunc`.
|
* returned by `keysFunc`.
|
||||||
*
|
*
|
||||||
* @private
|
* @private
|
||||||
* @param {Object} object The object to inspect.
|
* @param {Object} object The object to query.
|
||||||
* @param {Function} keysFunc The function to get the keys of `object`.
|
* @param {Array} props The property names to get values for.
|
||||||
* @returns {Object} Returns the array of property values.
|
* @returns {Object} Returns the array of property values.
|
||||||
*/
|
*/
|
||||||
function baseValues(object, keysFunc) {
|
function baseValues(object, props) {
|
||||||
var index = -1,
|
var index = -1,
|
||||||
props = keysFunc(object),
|
|
||||||
length = props.length,
|
length = props.length,
|
||||||
result = Array(length);
|
result = Array(length);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user