Ensure _.toPath converts array values to strings.

This commit is contained in:
John-David Dalton
2015-09-05 11:25:06 -07:00
parent 15a4fb7adf
commit dc2e769d9a
2 changed files with 8 additions and 6 deletions

View File

@@ -11480,7 +11480,7 @@
* // => false
*/
function toPath(value) {
return isArray(value) ? copyArray(value) : stringToPath(value);
return isArray(value) ? arrayMap(value, String) : stringToPath(value);
}
/**