Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

Get/_BaseGet cannot get right value of an object #176

Open
backlost opened this issue Jan 28, 2021 · 1 comment
Open

Get/_BaseGet cannot get right value of an object #176

backlost opened this issue Jan 28, 2021 · 1 comment

Comments

@backlost
Copy link

I try to use lodash-webpack-plugin@0.11.6 to make my lib as small as possible
But I got a bug when I use 'get' from lodash.
I read the code and noticed

['_baseGet', '_getValue'],

in mapping.js

But , actually in lodash _baseGet is:

function baseGet(object, path) {
path = castPath(path, object);

var index = 0,
length = path.length;

while (object != null && index < length) {
object = object[toKey(path[index++])];
}
return (index && index == length) ? object : undefined;
}

they are not equal

@tech-meppem
Copy link

I also got this bug. It only goes 1 level deep.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants