Re:NPM – "is-even", 160k weekly downloads
by raverbashing on Wednesday November 17, 2021 @02:45AM
(#29250166)
The real question is why JS can't provide the answer to "isFunction" in a builtin method
[ Parent
| on HN ]
Re:NPM – "is-even", 160k weekly downloads
by datagram on Wednesday November 17, 2021 @04:40PM
(#29259186)
It can: JavaScript has a `typeof` operator that can be used for this. If you read the readme for is-fn, it points out that the package is only useful for code that needs to run in certain older browsers that have a buggy implementation of `typeof`.