mirror of https://github.com/lukechilds/node.git
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.
17 lines
475 B
17 lines
475 B
9 years ago
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
||
|
var nativeKeys = Object.keys;
|
||
|
|
||
|
/**
|
||
|
* The base implementation of `_.keys` which doesn't skip the constructor
|
||
|
* property of prototypes or treat sparse arrays as dense.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Object} object The object to query.
|
||
|
* @returns {Array} Returns the array of property names.
|
||
|
*/
|
||
|
function baseKeys(object) {
|
||
|
return nativeKeys(Object(object));
|
||
|
}
|
||
|
|
||
|
module.exports = baseKeys;
|