Socket
Book a DemoInstallSign in
Socket

isarrowfunction

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

isarrowfunction

Checks if value is an arrow function object.

latest
Source
npmnpm
Version
0.0.3
Version published
Weekly downloads
5
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

arrow

FAQs

Package last updated on 13 Dec 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts