MCPcopy
hub / github.com/lodash/lodash / baseKeysIn

Function baseKeysIn

lodash.js:3549–3562  ·  view source on GitHub ↗

* The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names.

(object)

Source from the content-addressed store, hash-verified

3547 * @returns {Array} Returns the array of property names.
3548 */
3549 function baseKeysIn(object) {
3550 if (!isObject(object)) {
3551 return nativeKeysIn(object);
3552 }
3553 var isProto = isPrototype(object),
3554 result = [];
3555
3556 for (var key in object) {
3557 if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
3558 result.push(key);
3559 }
3560 }
3561 return result;
3562 }
3563
3564 /**
3565 * The base implementation of `_.lt` which doesn't coerce arguments.

Callers 1

keysInFunction · 0.85

Calls 3

isObjectFunction · 0.85
nativeKeysInFunction · 0.85
isPrototypeFunction · 0.85

Tested by

no test coverage detected