Is that thing a function? Use this module to find out.
Return true
if fn
is a function, otherwise false
.
Because certain old browsers misreport the type of RegExp
objects as functions.
I stole this from https://github.com/ljharb/object-keys
MIT