0.0.1 • Published 6 years ago
@actualwave/is-function v0.0.1
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.
0.0.1
6 years ago