Don’t treat a picked path as deep if it exists as a property of the object. [closes #2826]

This commit is contained in:
John-David Dalton
2016-11-15 09:14:19 -08:00
parent 4cb7bea97d
commit 89656fdf4a

View File

@@ -3805,7 +3805,7 @@
value = baseGet(object, path);
if (predicate(value, path)) {
baseSet(result, path, value);
baseSet(result, castPath(path, object), value);
}
}
return result;