News for hackers. Stuff that matters.
Re:30 seconds of code: Curated list of useful JavaScript sni... by thephyber on Monday December 11, 2017 @04:44PM (#15900770)
> _ is used to indicate lack of used arguments

Note that this is a convention, not a requirement for the syntax (like in some other languages).

I've spent at least a few mins troubleshooting why `_.map` (from `lodash` npm module) didn't work inside of a fat function while fixing another developer's defect.

If you use `_` as a valid const/variable identifier anywhere in your codebase, I would recommend you ditch `_ => alert(1)` for something more obscure like `ø => alert(1)`

There are no comments on this comment yet.