this file was in es5 and there's a es5 directory as well (in this chapter), so I have refactored to be es6 instead. mostly using a functional approach (removing while and for loops when possible, avoiding transformations, etc) and taking advantage of the new features from es6.
👋 Hello!
this file was in
es5
and there's aes5
directory as well (in this chapter), so I have refactored to bees6
instead. mostly using a functional approach (removingwhile
andfor
loops when possible, avoiding transformations, etc) and taking advantage of the new features from es6.✅ all tests are passing.
Cheers,