@jsep-plugin/arrow
v1.0.6
Published
Adds arrow-function support
Downloads
26,069
Readme
@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);