Sha256: 92683af4e78a9e10b38d5d56306cee637556938a2bead6c214dac14f1d769d33
Contents?: true
Size: 776 Bytes
Versions: 277
Compression:
Stored size: 776 Bytes
Contents
var isPrototype = require('./_isPrototype'), nativeKeys = require('./_nativeKeys'); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * The base implementation of `_.keys` which doesn't treat sparse arrays as dense. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. */ function baseKeys(object) { if (!isPrototype(object)) { return nativeKeys(object); } var result = []; for (var key in Object(object)) { if (hasOwnProperty.call(object, key) && key != 'constructor') { result.push(key); } } return result; } module.exports = baseKeys;
Version data entries
277 entries across 275 versions & 31 rubygems