mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 14:37:49 +00:00
20 lines
522 B
JavaScript
20 lines
522 B
JavaScript
define([], function() {
|
|
|
|
/* 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));
|
|
}
|
|
|
|
return baseKeys;
|
|
});
|