npm.io
3.0.0 • Published 4 years ago

is-fn v3.0.0

Weekly downloads
56,233
License
MIT
Repository
github
Last release
4 years ago

is-fn

Check if a value is a function

In Node.js, just use typeof fn which works exactly the same. This module can be useful in the browser where typeof fn has a myriad of bugs.

Install

$ npm install is-fn

Usage

import isFunction from 'is-fn';

isFunction(() => {});
//=> true

isFunction('unicorn');
//=> false

Related

  • @sindresorhus/is - Type check values
functionfncheckdetectistesttype
@infinitebrahmanuniverse/nolb-is-f@everything-registry/sub-chunk-1933@borealisswap/borealis-swap-libinstall-iskafirchain-tetrislazy-eval-arrayubborg-sysfacts-helper-pmbubborg-planner-pmbubborg-playbookie-pmb@afria/afria-libraries@aligov/search-table@chakra-swap/core@bonsaiswap-lib/lib@bonsaiswapv3/core@bonsaiswapv3/deploy@eliteswap/v2-core@innoswap/core@litedexdev/litedex-core-swap@materia-dex/materia-contracts-proxy@kodinghandle/bullswap-lib@igniswap/igni-swap-lib@olympfin/olymp-swap-libp360p-seqpromise-to-callbackremove-methodsnode-matrix-assetspify-all-methods-pmbproxify-objectspromisify-selected-methodsretry-fnsindresorhus.jsconcise-value-preview-pmbgulp-modify-css-urls@sudophunk/fulido@thismr/bitmindtest-core@xswap/v2-corebcs-kitbullet-catcherexpress-final-text-response-pmbfnvl
3.0.0

4 years ago

2.0.0

6 years ago

1.0.0

10 years ago

contact@npm.io