From c277dfb9ff0b6da63c7870318c6bc0a9f46ac40d Mon Sep 17 00:00:00 2001 From: g1tman <32861951+g1tman@users.noreply.github.com> Date: Wed, 21 Oct 2020 20:49:06 +0530 Subject: [PATCH] Use underscore for unused argument --- snippets/initializeArrayWithRange.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/initializeArrayWithRange.md b/snippets/initializeArrayWithRange.md index 7925fbb65..aeb8c9da1 100644 --- a/snippets/initializeArrayWithRange.md +++ b/snippets/initializeArrayWithRange.md @@ -12,7 +12,7 @@ Initializes an array containing the numbers in the specified range where `start` ```js const initializeArrayWithRange = (end, start = 0, step = 1) => - Array.from({ length: Math.ceil((end - start + 1) / step) }, (v, i) => i * step + start); + Array.from({ length: Math.ceil((end - start + 1) / step) }, (_, i) => i * step + start); ``` ```js