1 var arrayLikeKeys = require('./_arrayLikeKeys'),
2 baseKeys = require('./_baseKeys'),
3 isArrayLike = require('./isArrayLike');
6 * Creates an array of the own enumerable property names of `object`.
8 * **Note:** Non-object values are coerced to objects. See the
9 * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
16 * @param {Object} object The object to query.
17 * @returns {Array} Returns the array of property names.
25 * Foo.prototype.c = 3;
28 * // => ['a', 'b'] (iteration order is not guaranteed)
33 function keys(object) {
34 return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
37 module.exports = keys;