is-arrow-function

WebJar for is-arrow-function

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

is-arrow-function
Last Version

Last Version

2.0.3
Release Date

Release Date

Type

Type

jar
Description

Description

is-arrow-function
WebJar for is-arrow-function
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/ljharb/is-arrow-function

Download is-arrow-function

How to add to project

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

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : is-callable jar [1.0.4,2)

Project Modules

There are no modules declared in this project.

is-arrow-function Version Badge

dependency status dev dependency status

npm badge

npm module to determine if a function is an ES6 arrow function or not.

NOTE: Only works in Firefox at the moment.

Example

var isArrowFunction = require('is-arrow-function');
assert(!isArrowFunction(function () {}));
assert(!isArrowFunction(null));
assert(isArrowFunction((a, b) => a * b));
assert(isArrowFunction(() => 42));
assert(isArrowFunction(x => x * x));
assert(isArrowFunction(x => () => x * x));

Tests

Simply clone the repo, npm install, and run npm test

Versions

Version
2.0.3