@jsep-plugin/spread
v1.0.3
Published
Adds spread (...) expression support
Downloads
7,179
Readme
@jsep-plugin/spread
A JSEP plugin for adding spread expression support. Allows expressions of the form:
jsep('fn(1, ...a)');
jsep('{ ...a }');
jsep('[...a]');
Install
npm install @jsep-plugin/spread
# or
yarn add @jsep-plugin/spread
Usage
import jsep from 'jsep';
import jsepSpread from '@jsep-plugin/spread';
jsep.plugins.register(jsepSpread);