Created
November 19, 2017 07:39
-
-
Save kepta/6e7a60ca2496a0ff19b0e1d894ce0bcb to your computer and use it in GitHub Desktop.
default_param_1
This file contains hidden or 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 filterEvil(array, evil) { | |
evil = evil || 'darth vader'; | |
return array.filter(item => item !== evil); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment