mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-12 11:57:49 +00:00
Fixin keysIn import in defaults by switching to baseKeysIn.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import eq from './eq.js'
|
import eq from './eq.js'
|
||||||
import keysIn from './keysIn.js'
|
import baseKeysIn from './.internal/baseKeysIn.js'
|
||||||
|
|
||||||
/** Used for built-in method references. */
|
/** Used for built-in method references. */
|
||||||
const objectProto = Object.prototype
|
const objectProto = Object.prototype
|
||||||
@@ -32,7 +32,7 @@ function defaults(object, ...sources) {
|
|||||||
const srcLength = sources.length
|
const srcLength = sources.length
|
||||||
while (++srcIndex < srcLength) {
|
while (++srcIndex < srcLength) {
|
||||||
const source = sources[srcIndex]
|
const source = sources[srcIndex]
|
||||||
const props = keysIn(source)
|
const props = baseKeysIn(source)
|
||||||
let propsIndex = -1
|
let propsIndex = -1
|
||||||
const propsLength = props.length
|
const propsLength = props.length
|
||||||
while (++propsIndex < propsLength) {
|
while (++propsIndex < propsLength) {
|
||||||
|
|||||||
Reference in New Issue
Block a user