mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 07:47:49 +00:00
Ensure toPath works with a nullish value.
This commit is contained in:
@@ -4570,7 +4570,7 @@
|
||||
return value;
|
||||
}
|
||||
var result = [];
|
||||
(value + '').replace(rePropName, function(match, number, quote, string) {
|
||||
baseToString(value).replace(rePropName, function(match, number, quote, string) {
|
||||
result.push(typeof string == 'string' ? string : (number || match));
|
||||
});
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user