Bump to v4.10.0.

This commit is contained in:
John-David Dalton
2016-04-10 22:55:59 -07:00
parent b7e3b3febd
commit f10bb8b80b
53 changed files with 162 additions and 158 deletions

View File

@@ -1,9 +1,9 @@
import arrayMap from './_arrayMap';
import baseCastKey from './_baseCastKey';
import copyArray from './_copyArray';
import isArray from './isArray';
import isSymbol from './isSymbol';
import stringToPath from './_stringToPath';
import toKey from './_toKey';
/**
* Converts `value` to a property path array.
@@ -33,7 +33,7 @@ import stringToPath from './_stringToPath';
*/
function toPath(value) {
if (isArray(value)) {
return arrayMap(value, baseCastKey);
return arrayMap(value, toKey);
}
return isSymbol(value) ? [value] : copyArray(stringToPath(value));
}