Remove semicolons.

This commit is contained in:
John-David Dalton
2017-02-04 23:50:10 -08:00
parent f3a8e55e70
commit 6cb3460fce
452 changed files with 4261 additions and 4261 deletions

View File

@@ -1,6 +1,6 @@
import isKey from './isKey.js';
import stringToPath from './stringToPath.js';
import toString from '../toString.js';
import isKey from './isKey.js'
import stringToPath from './stringToPath.js'
import toString from '../toString.js'
/**
* Casts `value` to a path array if it's not one.
@@ -12,9 +12,9 @@ import toString from '../toString.js';
*/
function castPath(value, object) {
if (Array.isArray(value)) {
return value;
return value
}
return isKey(value, object) ? [value] : stringToPath(toString(value));
return isKey(value, object) ? [value] : stringToPath(toString(value))
}
export default castPath;
export default castPath