0.0.3 • Published 8 years ago

isarrowfunction v0.0.3

Weekly downloads
7
License
-
Repository
github
Last release
8 years ago

is-arrow-function

Checks if value is an arrow function object.

This function is used to distinguish an arrow function from a regular function.

See http://stackoverflow.com/q/34244183/368691 for a discussion regarding the best method to determine if value is an arrow function.

Use

import isArrowFunction from 'is-arrow-function';

isArrowFunction(() => {});
// true

isArrowFunction(function () {});
// false

Install

npm install isarrowfunction
0.0.3

8 years ago

0.0.2

8 years ago