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-arraygulp-modify-css-urls@thismr/bitmindtest-core@xswap/v2-core@afria/afria-libraries@aligov/search-tableubborg-sysfacts-helper-pmbubborg-planner-pmbubborg-playbookie-pmb@chakra-swap/core@bonsaiswap-lib/lib@bonsaiswapv3/core@bonsaiswapv3/deploy@litedexdev/litedex-core-swap@kodinghandle/bullswap-libp360p-seqpromise-to-callbackremove-methodsnode-matrix-assetspify-all-methods-pmbproxify-objectspromisify-selected-methodsretry-fnsindresorhus.jsconcise-value-preview-pmbbcs-kitbullet-catcher@sudophunk/fulidoexpress-final-text-response-pmbfnvl@materia-dex/materia-contracts-proxy@innoswap/core@eliteswap/v2-core@igniswap/igni-swap-lib@olympfin/olymp-swap-lib
3.0.0

4 years ago

2.0.0

7 years ago

1.0.0

10 years ago

contact@npm.io