lodash-webpack-plugin icon indicating copy to clipboard operation
lodash-webpack-plugin copied to clipboard

Get/_BaseGet cannot get right value of an object

Open backlost opened this issue 4 years ago • 1 comments

I try to use [email protected] 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

backlost avatar Jan 28 '21 14:01 backlost

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

tech-meppem avatar Mar 17 '23 16:03 tech-meppem