Skip to content

Commit 1f18bf6

Browse files
authored
Update func.js
1 parent f817934 commit 1f18bf6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jive/func.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
function r(start, end) {
2-
return Array.from({ length: end - start }, (_, i) => start + i)
1+
function r(n, k) {
2+
return Array.from({length:k-n}, (_,i)=>n+i)
33
}
44
function fact(n){
55
//alert. Will be worked on soon

0 commit comments

Comments
 (0)