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,5 +1,5 @@
import castPath from './castPath.js';
import toKey from './toKey.js';
import castPath from './castPath.js'
import toKey from './toKey.js'
/**
* The base implementation of `get` without support for default values.
@@ -10,15 +10,15 @@ import toKey from './toKey.js';
* @returns {*} Returns the resolved value.
*/
function baseGet(object, path) {
path = castPath(path, object);
path = castPath(path, object)
let index = 0;
const length = path.length;
let index = 0
const length = path.length
while (object != null && index < length) {
object = object[toKey(path[index++])];
object = object[toKey(path[index++])]
}
return (index && index == length) ? object : undefined;
return (index && index == length) ? object : undefined
}
export default baseGet;
export default baseGet