26 ms·
The first time encountering a certain JS library's $.noop function bent my brain — "why would there be a function for not calling a function?" Later, wisdom vi
by grrowl 11y ago
The first time encountering a certain JS library's $.noop function bent my brain — "why would there be a function for not calling a function?"
Later, wisdom visited me and I realised the costs of `typeof isThisAFunction` and the savings of optimising out an empty function call in the first place.