DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
range between two numbers
const
range
=
(
min
,
max
)
=>
[
...
Array
(
max
-
min
+
1
)
.
keys
(
)
]
.
map
(
i
=>
i
+
min
)
;
Source by www.codegrepper.com #
PREVIOUS
NEXT
Tagged:
#range
#numbers
ADD COMMENT
Topic
COMMENT
Name
4+5 =
Submit