Skip to content

Commit e52c421

Browse files
committed
Remove overArg.
1 parent 0aa7a62 commit e52c421

File tree

2 files changed

+12
-17
lines changed

2 files changed

+12
-17
lines changed

.internal/nativeKeys.js

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
1-
import overArg from './.internal/overArg.js';
2-
3-
/* Built-in method references for those with the same name as other `lodash` methods. */
4-
const nativeKeys = overArg(Object.keys, Object);
1+
/**
2+
* This function is a thin wrapper around
3+
* [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
4+
* which ensures non-object values are coerced to objects beforehand.
5+
*
6+
* @private
7+
* @param {Object} object The object to query.
8+
* @returns {Array} Returns the array of property names.
9+
*/
10+
function nativeKeys(object) {
11+
return Object.keys(Object(object));
12+
}
513

614
export default nativeKeys;

.internal/overArg.js

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)