isarrowfunction
v0.0.3
Published
Checks if value is an arrow function object.
Downloads
7
Readme
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