mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-02 16:17:50 +00:00
15 lines
415 B
JavaScript
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
|