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.