mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 18:17:48 +00:00
Ensure toPath works with a nullish value.
This commit is contained in:
@@ -4570,7 +4570,7 @@
|
|||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
var result = [];
|
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));
|
result.push(typeof string == 'string' ? string : (number || match));
|
||||||
});
|
});
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
Reference in New Issue
Block a user