re: This is because Array.prototype.splice does whatever it does in place. Meaning that it mutates the original array. Mutation are usually consider to...

Thank you Basit and Jason for clearing this up! I certainly should have mentioned the dangers of mutating our original dataset.

Nonetheless, having knowledge of how to use .splice as well as it's dangers could show mastery of JS in the context of an interview <3

code of conduct - report abuse