Skip to content

Latest commit

 

History

History

arrow

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

npm size

@jsep-plugin/arrow

A JSEP plugin for adding arrow-function support. Allows expressions of the form:

jsep('a.find(v => v === 1)');
jsep('a.map((v, i) => i)');
jsep('a.map(() => true)');

Install

npm install @jsep-plugin/arrow
# or
yarn add @jsep-plugin/arrow

Usage

import jsep from 'jsep';
import jsepArrow from '@jsep-plugin/arrow';
jsep.plugins.register(jsepArrow);

Meta

LICENSE (MIT)