Skip to content

Instantly share code, notes, and snippets.

@himynameisdave
Created July 13, 2016 20:27
Show Gist options
  • Save himynameisdave/b345cd981100fa375a5333dadc79b205 to your computer and use it in GitHub Desktop.
Save himynameisdave/b345cd981100fa375a5333dadc79b205 to your computer and use it in GitHub Desktop.
using an empty argument in anon arrow functions
// 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