Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Aug 20th, 2018
75
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.19 KB
| None
|
0
0
raw
download
clone
embed
print
report
const inc = num => num + 1;
const range = (start, end, coll = []) => {
if (start > end) return coll;
return range(inc(start), end, coll.concat(start));
};
range(1, 5); // [1, 2, 3, 4, 5]
Add Comment
Please,
Sign In
to add comment
Public Pastes
✅ Account Leaks
JavaScript | 1 sec ago | 0.08 KB
✅ Account Leaks
JavaScript | 2 sec ago | 0.08 KB
✅ PayPal Hits
JavaScript | 3 sec ago | 0.08 KB
Make 3500$ in 20 MIN [Method] J
JavaScript | 5 sec ago | 0.08 KB
✅ MAKE $22OO IN 10 MIN M
JavaScript | 6 sec ago | 0.08 KB
✅ MAKE $22OO IN 10 MIN H
JavaScript | 7 sec ago | 0.08 KB
FREE BTC GUIDE
JavaScript | 8 sec ago | 0.08 KB
Netflix Premium UHD Hits
JavaScript | 10 sec ago | 0.08 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!