isFunction
The isFunction()
is a simple wrapper over
typeof value === 'function'
Previously I was using instanceof but it seems using typeof should faster. And since I do not like putting string literal here and there, I've decided to wrap it into a function.