]> git.wincent.com - hextrapolate.git/commit
Don't mutate input array in joinDigits()
authorGreg Hurrell <greg@hurrell.net>
Sat, 1 Aug 2015 01:54:37 +0000 (18:54 -0700)
committerGreg Hurrell <greg@hurrell.net>
Sat, 1 Aug 2015 01:54:37 +0000 (18:54 -0700)
commitab92b650b5f18fb53ee9f6229fd82638d069d9af
treec87e168c960552e516cdba6120af28c223b961e0
parent3efb684d6717492b942a95a5baacdfc0ce862166
Don't mutate input array in joinDigits()

`reverse()` is a nasty API. It returns the reversed array, but also
mutates it in place. Noticed while using `joinDigits()` to log stuff
while developing.
src/joinDigits.js