mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 16:47:49 +00:00
Remove semicolons.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user