@jsep-plugin/arrow
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

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)

Readme

Keywords

none

Package Sidebar

Install

npm i @jsep-plugin/arrow

Weekly Downloads

318

Version

1.0.5

License

MIT

Unpacked Size

28.8 kB

Total Files

15

Last publish

Collaborators

  • 6utt3rfly
  • leaverou
  • smekkie
  • soney