mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 08:37:49 +00:00
Apply let/const transform.
This commit is contained in:
@@ -8,13 +8,13 @@
|
||||
* @returns {Object} Returns the new object.
|
||||
*/
|
||||
function baseZipObject(props, values, assignFunc) {
|
||||
var index = -1,
|
||||
length = props.length,
|
||||
valsLength = values.length,
|
||||
result = {};
|
||||
let index = -1;
|
||||
const length = props.length;
|
||||
const valsLength = values.length;
|
||||
const result = {};
|
||||
|
||||
while (++index < length) {
|
||||
var value = index < valsLength ? values[index] : undefined;
|
||||
const value = index < valsLength ? values[index] : undefined;
|
||||
assignFunc(result, props[index], value);
|
||||
}
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user