mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 17:07:49 +00:00
Apply let/const transform.
This commit is contained in:
@@ -9,10 +9,10 @@ import get from './get.js';
|
||||
* @returns {Array} Returns the picked elements.
|
||||
*/
|
||||
function baseAt(object, paths) {
|
||||
var index = -1,
|
||||
length = paths.length,
|
||||
result = Array(length),
|
||||
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]);
|
||||
|
||||
Reference in New Issue
Block a user