Files
lodash/.internal/nativeKeys.js
John-David Dalton 6cb3460fce Remove semicolons.
2017-02-05 22:22:04 -08:00

15 lines
415 B
JavaScript

/**
* This function is a thin wrapper around
* [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
* which ensures non-object values are coerced to objects beforehand.
*
* @private
* @param {Object} object The object to query.
* @returns {Array} Returns the array of property names.
*/
function nativeKeys(object) {
return Object.keys(Object(object))
}
export default nativeKeys