Skip to content

Instantly share code, notes, and snippets.

@thomasvaeth
Last active April 11, 2018 17:29
Show Gist options
  • Save thomasvaeth/d927e76730028e0a01014e5dbf709083 to your computer and use it in GitHub Desktop.
Save thomasvaeth/d927e76730028e0a01014e5dbf709083 to your computer and use it in GitHub Desktop.
"A diamond is a piece of coal that stuck to the job." - Michael Larsen
function deleteNumbers(arr, num) {
return arr.filter(item => item <= num);
}
deleteNumbers([1, 11, 4, 33, 22, 36, 39, 6, 29, 34], 20);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment