mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 10:17:48 +00:00
Remove baseKeys and baseKeysIn.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import getSymbolsIn from './getSymbolsIn.js'
|
||||
import baseKeysIn from './baseKeysIn.js'
|
||||
|
||||
/**
|
||||
* Creates an array of own and inherited enumerable property names and symbols of `object`.
|
||||
@@ -9,7 +8,10 @@ import baseKeysIn from './baseKeysIn.js'
|
||||
* @returns {Array} Returns the array of property names and symbols.
|
||||
*/
|
||||
function getAllKeysIn(object) {
|
||||
const result = baseKeysIn(object)
|
||||
const result = []
|
||||
for (const key in object) {
|
||||
result.push(key)
|
||||
}
|
||||
if (!Array.isArray(object)) {
|
||||
result.push(...getSymbolsIn(object))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user