Apply let/const transform.

This commit is contained in:
John-David Dalton
2017-01-07 23:18:22 -08:00
parent 4c881b2726
commit 10f64ee9c4
103 changed files with 207 additions and 207 deletions

View File

@@ -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]);