1 var arrayLikeKeys = require('./_arrayLikeKeys'),
2 baseKeysIn = require('./_baseKeysIn'),
3 isArrayLike = require('./isArrayLike');
6 * Creates an array of the own and inherited enumerable property names of `object`.
8 * **Note:** Non-object values are coerced to objects.
14 * @param {Object} object The object to query.
15 * @returns {Array} Returns the array of property names.
23 * Foo.prototype.c = 3;
26 * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
28 function keysIn(object) {
29 return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
32 module.exports = keysIn;