From 89656fdf4abeca41b81566dab51f992ca7a18301 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Tue, 15 Nov 2016 09:14:19 -0800 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20treat=20a=20picked=20path=20as?= =?UTF-8?q?=20deep=20if=20it=20exists=20as=20a=20property=20of=20the=20obj?= =?UTF-8?q?ect.=20[closes=20#2826]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lodash.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lodash.js b/lodash.js index 05cd9198c..4d11ee849 100644 --- a/lodash.js +++ b/lodash.js @@ -3805,7 +3805,7 @@ value = baseGet(object, path); if (predicate(value, path)) { - baseSet(result, path, value); + baseSet(result, castPath(path, object), value); } } return result;