1.0.2 • Published 4 years ago

is-function v1.0.2

Weekly downloads
3,518,549
License
MIT
Repository
github
Last release
4 years ago

is-function

browser support

Is that thing a function? Use this module to find out.

API

module.exports = function isFunction(fn) -> Boolean

Return true if fn is a function, otherwise false.

Why not typeof fn === 'function'

Because certain old browsers misreport the type of RegExp objects as functions.

Acknowledgements

I stole this from https://github.com/ljharb/object-keys

License

MIT

xhrdeico@storybook/telejsonsonetts@infinitebrahmanuniverse/nolb-is-f@saaspe/components@everything-registry/sub-chunk-1933whitelodgeto-integerto-numto-strteapackage-tatespoorman297trackpoint-tools-minu-libraryuecomponents@gcencic/styled-componentsutdolorviber-botkit@hanlindev/cancan@innoswap/corezona-x@img-arena/img-ui-mui-theme@flownet/react-app-state@flownet/form-node-statefaucet-testnet@img-arena/ui-corecommit-hashobserver-subject@dikac/t-function@dminc/xhrclass-infopromise-effectpromise-control-flowdoorson-appdesign-system-fitbank-450ddidoloremquefugitredux-namespacesreciprocatorreact-router-breadcrumbsreact-rwdrepeat-componentsend-ssesequence-detectorsequencexscroll-directionsequelcomponentspooky-elementspooky-routerstyled-theme-providerstyled-components-v2styled-components-with-middlewaresstrum@bygd/gd-sdk-era@byhuz/huz-ui-project@byhuz/huz-ui-stateobjextendercodeinesvelte-component-lib@olympfin/olymp-swap-libglamorous@kineticdata/bundle-queue@igniswap/igni-swap-lib@packi_/feature-webpack@eliteswap/v2-core@gfpacheco/themingessey@fye/soap-clientforeach-prop@lego-js/testsjsonifizerjson2bigintjson-sql-utilitykeyfinderkebakarankafirchain-tetrisnamespaces-js@bestminr/meike-utilsnative-promisify-if-present@byqv/qv-corebloomfilter-filter@bjoerge/xhr@blkmarketco/components-libraryappcharge-checkoutappcharge-checkout-reactjs-sdklambda_patternlogic-gate@xswap/v2-core@xizhouh/former@xizhouh/formless@cognite/3d-camera-controls@cognite/3d-viewer@cute-apocalypse/react-treeaudio-labany-storageast-replacearray-if-then-else@avioos/av-ui-state@ciscospark/http-core@bonsaiswap-lib/lib
1.0.2

4 years ago

1.0.1

10 years ago

1.0.0

10 years ago

0.0.0

10 years ago