Fixin keysIn import in getAllKeysIn by switching to baseKeysIn.

This commit is contained in:
Michał Lipiński
2017-03-22 22:55:03 +01:00
parent f7a6cddc9e
commit a8abced07a

View File

@@ -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))
}