I found that this kind of using functions is not widely known as it should be
Depends on what you mean. Using function references like map(Number) is very common. It's essentially the same as .on("click", someHandlerFunction). What's clever about .map(Boolean) or .map(Number) is referencing the type constructor.
1
u/TaskForce_Kerim Apr 29 '19
The filter falsy values one is pretty nifty.