Arryx - Arrays extended

I don’t find that more readable at all, you are adding another verbose layer of complexity over arrays which is not needed.

Btw, you don’t make a copy of the array passed to the Arryx constructor, this is prone to issues sooner than later.

Anyway, I think you mare missing the point of object prototypes, JavaScript is not your usual OO language. Do as you prefer, but your solution is like putting a Ferrari sticker on a Fiat to make it look like a Ferrari ;-)

I wonder from what languages your freshers are coming from, if they need something like this and can’t figure out how JavaScript arrays work, maybe they should go back to reading the array documentation. A solution like this won’t help them becoming proficient IMO.

/r/typescript Thread Parent