Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Aug 20th, 2018
74
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
🤑 G2A.com Free Gift Card Guide May 2024 FIX 💰
GetText | 1 min ago | 0.38 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 15 min ago | 0.39 KB
cipher_tool_101
Python | 49 min ago | 15.28 KB
CBC Pitch Calculator
Lua | 56 min ago | 3.14 KB
Vape UI
Lua | 1 hour ago | 69.28 KB
Voice pack
LScript | 1 hour ago | 6.47 KB
Esp32 Rainmaker controller
C++ | 1 hour ago | 8.39 KB
Untitled
CSS | 2 hours ago | 6.50 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!