From db5d443334b32485500e53643b2c79409691ded8 Mon Sep 17 00:00:00 2001 From: Rohit Paul <113459757+RohitPaul12345@users.noreply.github.com> Date: Fri, 28 Jul 2023 12:16:13 +0530 Subject: [PATCH] Update FLARArrayUtil.js --- src/FLARArrayUtil.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/FLARArrayUtil.js b/src/FLARArrayUtil.js index aa0341f..aed795d 100644 --- a/src/FLARArrayUtil.js +++ b/src/FLARArrayUtil.js @@ -29,8 +29,8 @@ */ ArrayUtil = ASKlass('ArrayUtil', { createJaggedArray : function(len) { - var arr = new Array(len); - var args = toArray(arguments).slice(1); + let arr = new Array(len); + let args = toArray(arguments).slice(1); while (len--) { arr[len] = args.length ? this.createJaggedArray.apply(null, args) : 0; } @@ -43,7 +43,7 @@ ArrayUtil = ASKlass('ArrayUtil', { return this.createJaggedArray(depth, height, width); } ,copy : function(src, srcPos, dest, destPos, length) { - for (var i = 0; i < length; i++) { + for (let i = 0; i < length; i++) { dest[destPos + i] = src[srcPos + i]; } }