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,4 +1,4 @@
|
||||
import get from '../get.js';
|
||||
import get from '../get.js'
|
||||
|
||||
/**
|
||||
* The base implementation of `at` without support for individual paths.
|
||||
@@ -9,15 +9,15 @@ import get from '../get.js';
|
||||
* @returns {Array} Returns the picked elements.
|
||||
*/
|
||||
function baseAt(object, paths) {
|
||||
let index = -1;
|
||||
const length = paths.length;
|
||||
const result = Array(length);
|
||||
const skip = object == null;
|
||||
let index = -1
|
||||
const length = paths.length
|
||||
const result = Array(length)
|
||||
const skip = object == null
|
||||
|
||||
while (++index < length) {
|
||||
result[index] = skip ? undefined : get(object, paths[index]);
|
||||
result[index] = skip ? undefined : get(object, paths[index])
|
||||
}
|
||||
return result;
|
||||
return result
|
||||
}
|
||||
|
||||
export default baseAt;
|
||||
export default baseAt
|
||||
|
||||
Reference in New Issue
Block a user