mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 02:17:50 +00:00
Remove nativeKeys and nativeKeysIn.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import isPrototype from './isPrototype.js'
|
||||
import nativeKeys from './nativeKeys.js'
|
||||
|
||||
/** Used to check objects for own properties. */
|
||||
const hasOwnProperty = Object.prototype.hasOwnProperty
|
||||
@@ -13,7 +12,7 @@ const hasOwnProperty = Object.prototype.hasOwnProperty
|
||||
*/
|
||||
function baseKeys(object) {
|
||||
if (!isPrototype(object)) {
|
||||
return nativeKeys(object)
|
||||
return Object.keys(Object(object))
|
||||
}
|
||||
const result = []
|
||||
for (const key in Object(object)) {
|
||||
|
||||
Reference in New Issue
Block a user