is-function

WebJar for is-function

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

is-function
Last Version

Last Version

1.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

is-function
WebJar for is-function
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/grncdr/js-is-function

Download is-function

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/is-function/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>is-function</artifactId>
    <version>1.0.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/is-function/
implementation 'org.webjars.npm:is-function:1.0.2'
// https://jarcasting.com/artifacts/org.webjars.npm/is-function/
implementation ("org.webjars.npm:is-function:1.0.2")
'org.webjars.npm:is-function:jar:1.0.2'
<dependency org="org.webjars.npm" name="is-function" rev="1.0.2">
  <artifact name="is-function" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='is-function', version='1.0.2')
)
libraryDependencies += "org.webjars.npm" % "is-function" % "1.0.2"
[org.webjars.npm/is-function "1.0.2"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

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

Versions

Version
1.0.2
1.0.1
1.0.0