mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27:49 +00:00
Fixin keysIn import in getAllKeysIn by switching to baseKeysIn.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import getSymbolsIn from './getSymbolsIn.js'
|
||||
import keysIn from '../keysIn.js'
|
||||
import baseKeysIn from './baseKeysIn.js'
|
||||
|
||||
/**
|
||||
* Creates an array of own and inherited enumerable property names and symbols of `object`.
|
||||
@@ -9,7 +9,7 @@ import keysIn from '../keysIn.js'
|
||||
* @returns {Array} Returns the array of property names and symbols.
|
||||
*/
|
||||
function getAllKeysIn(object) {
|
||||
const result = keysIn(object)
|
||||
const result = baseKeysIn(object)
|
||||
if (!Array.isArray(object)) {
|
||||
result.push(...getSymbolsIn(object))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user