2 ms·
The real question is why JS can't provide the answer to "isFunction" in a builtin method
by raverbashing 5y ago
The real question is why JS can't provide the answer to "isFunction" in a builtin method
- datagram 5y agoIt 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`.