1.0.2 • Published 6 years ago

is-function v1.0.2

Weekly downloads
3,518,549
License
MIT
Repository
github
Last release
6 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-1933promise-effectwhitelodgeteapackage-tatespoorman297spooky-elementspooky-routersvelte-component-libviber-botkitis-array-likeis-in-correct-formatjson-sql-utilityiphong-styled-componentsis-eq-ten-thousandis-express-appis-express-routerinstall-isis-noopkeyfinderkebakaranjson2bigintjsonifizerkafirchain-tetrisimplexusgraphql-loglogic-gateloading-animatedlambda_patternmerchant.jsmeike-utils@webex/http-core@thismr/bitmindtest-core@twec/soap@twec/bunyan-logger@videojs/xhr@vitali_shcherbina/styled-lib@xswap/v2-core@xizhouh/former@xizhouh/formless@yak-spirit/yak-swap-uiampersand-view-conventionsaudio-labast-replacearray-if-then-elseany-storageappcharge-checkout@hanlindev/cancan@cognite/3d-camera-controls@cognite/3d-viewerstyled-theme-providerstyled-components-v2styled-components-with-middlewaresstrumu-libraryuecomponentstrackpoint-tools-minto-strto-numto-integerutdolorzona-x@flownet/form-node-state@lego-js/tests@litedexdev/litedex-core-swapmini-template-enginenamespaces-jsnative-promisify-if-presentobserver-subjectobjextenderparvan_componentsparvan_reactjs_componentspackagejsonsequencexsequence-detectorreact-form-component-libraryscroll-directionsequelcomponentsend-ssepixiu-swap-corepixiuswap-libs-sdkpintervalpretty-promisepokego-scannerrepeat-componentqudratic-uiredux-namespacesreciprocatorpromise-control-flowquadratic-sdkshowgalleryreact-router-breadcrumbsreact-rwdglamorousconfig-requestcemento-paid
1.0.2

6 years ago

1.0.1

12 years ago

1.0.0

12 years ago

0.0.0

12 years ago