Last active
October 9, 2016 02:58
-
-
Save sAbakumoff/aac9719e65fa3afb69dc8ecae37fe5c0 to your computer and use it in GitHub Desktop.
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 f(){ | |
var filterFn = Array.prototype.filter; | |
filterFn.call(arguments, function(item){ | |
return item !== null; | |
}).forEach(function(item){ | |
alert(item); // will show 1,2,3 and 5 | |
}); | |
})(1,2,3,null,5); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment