Skip to content

Latest commit

 

History

History

ternary

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

npm size

@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);

Meta

LICENSE (MIT)