Last active
April 11, 2018 17:29
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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