@jsep-plugin/ternary
v1.1.4
Published
Adds ternary expression support
Downloads
2,667,000
Readme
@jsep-plugin/ternary
A JSEP plugin for adding ternary expression support. Allows expressions of the form:
jsep('a ? 1 : 2');
Install
npm install @jsep-plugin/ternary
# or
yarn add @jsep-plugin/ternary
Usage
import jsep from 'jsep';
import jsepTernary from '@jsep-plugin/ternary';
jsep.plugins.register(jsepTernary);