Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save LearningNerd/e38640370d4d11b2216aa0c35936ef73 to your computer and use it in GitHub Desktop.

Select an option

Save LearningNerd/e38640370d4d11b2216aa0c35936ef73 to your computer and use it in GitHub Desktop.
A saved mob programming session with Learn Teach Code!
// CHALLENGE: https://www.freecodecamp.org/challenges/seek-and-destroy
/*
GOAL: Remove all elements from the initial array that
are of the same value as these arguments.
*/
function destroyer(arr) {
// Remove all the values
return arr;
}
destroyer([1, 2, 3, 1, 2, 3], 2, 3);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment