You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
nocode 0762f95efd first commit 1 year ago
..
LICENSE first commit 1 year ago
README.md first commit 1 year ago
index.js first commit 1 year ago
package.json first commit 1 year ago
test.js first commit 1 year ago

README.md

is-function

browser support

Is that thing a function? Use this module to find out.

API

module.exports = function isFunction(fn) -> Boolean

Return true if fn is a function, otherwise false.

Why not typeof fn === 'function'

Because certain old browsers misreport the type of RegExp objects as functions.

Acknowledgements

I stole this from https://github.com/ljharb/object-keys

License

MIT