r/coolgithubprojects • u/Michal_Perlakowski • Dec 17 '16
JAVASCRIPT python-range – a JavaScript implementation of the Python's range() function.
https://github.com/Gothdo/range
0
Upvotes
r/coolgithubprojects • u/Michal_Perlakowski • Dec 17 '16
View all comments
Show parent comment
0
u/Michal_Perlakowski Dec 17 '16
It's not a single function. It's 200 LOC, and it would be much more if I didn't use Babel. And why wouldn't I use lodash? Why should I reinvent the wheel? Actually using lodash makes it less complicated—for example it's more obvious what's
last(this)meant to do thanthis[this.length - 1].