From 44ccab4478bf53a41046823277f0d0c40d7452df Mon Sep 17 00:00:00 2001 From: Rohit Paul <113459757+RohitPaul12345@users.noreply.github.com> Date: Tue, 1 Aug 2023 19:52:27 +0530 Subject: [PATCH] Update flatten-array.js --- test/flatten-array.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/flatten-array.js b/test/flatten-array.js index c7f0632..0660628 100644 --- a/test/flatten-array.js +++ b/test/flatten-array.js @@ -1,8 +1,8 @@ describe('flatten array', function () { it('should flatten an array', function () { - var arr = [1, 2, [1, 2, [3, 4, 5, [1]]], 2, [2]], + let arr = [1, 2, [1, 2, [3, 4, 5, [1]]], 2, [2]], expected = [1, 1, 1, 2, 2, 2, 2, 3, 4, 5]; expect(arr).toEqual(expected); }); -}); \ No newline at end of file +});