Bump to v4.17.1.

This commit is contained in:
John-David Dalton
2016-11-14 21:01:42 -08:00
parent 9849321273
commit 5585b3ae22
21 changed files with 172 additions and 168 deletions

View File

@@ -3,7 +3,8 @@ var arrayMap = require('./_arrayMap'),
isArray = require('./isArray'),
isSymbol = require('./isSymbol'),
stringToPath = require('./_stringToPath'),
toKey = require('./_toKey');
toKey = require('./_toKey'),
toString = require('./toString');
/**
* Converts `value` to a property path array.
@@ -26,7 +27,7 @@ function toPath(value) {
if (isArray(value)) {
return arrayMap(value, toKey);
}
return isSymbol(value) ? [value] : copyArray(stringToPath(value));
return isSymbol(value) ? [value] : copyArray(stringToPath(toString(value)));
}
module.exports = toPath;