30 seconds of codeBack to Home
Mutates the original array to filter out the values specified. Returns the removed elements.
Array.prototype.includes() to pull out the values that are not needed.
Array.prototype.length = 0 to mutate the passed in an array by resetting it's length to zero and
Array.prototype.push() to re-populate it with only the pulled values.
Array.prototype.push() to keep track of pulled values