hack-programming-hero
hack-programming-hero copied to clipboard
introduced another way, made code shorter and optimised a little bit.
I made array from Array.prototype.slice method and along with commented out another way of rest parameter [...makeArray] I counted length before length so that complexity could be lesser and optimised code