Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 765 Bytes

README.md

File metadata and controls

36 lines (27 loc) · 765 Bytes

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)