next-if
If condition for next.
installation
npm install -S @jswork/next-if
usage
import '@jswork/next-if';
const obj1 = { name: 'fei' };
const res1 = nx.if(obj1.name === 'fei', 'yes', 'no');
// yes
license
Code released under the MIT license.
If condition for next.
npm install -S @jswork/next-if
import '@jswork/next-if';
const obj1 = { name: 'fei' };
const res1 = nx.if(obj1.name === 'fei', 'yes', 'no');
// yes
Code released under the MIT license.
npm i @jswork/next-if
0
1.0.1
MIT
4.54 kB
6