You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// without.js should take in a source array and a itemsToRemove array. It should return a new array with only those elements from source that are not present in the itemsToRemove array.
const without = function (numArray, itemsToRemove) {
const result = [];
// iterates through the source items, checking if they are found in "items to remove"
for (const item of numArray) {
let found = false;
// iterates through itemsToRemove, checking them against each source item