@actualwave/is-function

0.0.1 • Public • Published

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1
    2

Package Sidebar

Install

npm i @actualwave/is-function

Weekly Downloads

2

Version

0.0.1

License

MIT

Unpacked Size

1.1 kB

Total Files

3

Last publish

Collaborators

  • actualwave