mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 18:07:49 +00:00
Remove dead code branch from baseCastPath.
This commit is contained in:
@@ -2339,10 +2339,9 @@
|
|||||||
* @returns {Array} Returns the cast property path array.
|
* @returns {Array} Returns the cast property path array.
|
||||||
*/
|
*/
|
||||||
function baseCastPath(value) {
|
function baseCastPath(value) {
|
||||||
if (isArray(value)) {
|
return isArray(value)
|
||||||
return value;
|
? value
|
||||||
}
|
: stringToPath(value);
|
||||||
return isSymbol(value) ? [value] : stringToPath(value);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user