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