Created
July 13, 2016 20:27
-
-
Save himynameisdave/b345cd981100fa375a5333dadc79b205 to your computer and use it in GitHub Desktop.
using an empty argument in anon arrow functions
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
// traditional | |
someFn(() => { | |
// anon fn code... | |
}); | |
// what some ppl do | |
someFn(_ => { | |
// anon fn code, never using the `_` argument | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment