mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 09:47:48 +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 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`.
|
* 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.
|
* @returns {Array} Returns the array of property names and symbols.
|
||||||
*/
|
*/
|
||||||
function getAllKeysIn(object) {
|
function getAllKeysIn(object) {
|
||||||
const result = keysIn(object)
|
const result = baseKeysIn(object)
|
||||||
if (!Array.isArray(object)) {
|
if (!Array.isArray(object)) {
|
||||||
result.push(...getSymbolsIn(object))
|
result.push(...getSymbolsIn(object))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user