UNPKG

ifd

Version:

Life Extending Ternary Operator Abstractions

19 lines (16 loc) 366 B
const path = require('path'), ifd = require(path.join(process.cwd(), 'dist/ifd.js')); //if going to return the last array not five const test = ifd( [undefined, 'one'], [false, 'two'], [NaN, 'three'], [null, 'four'], //defaults and returns [false, 'five'] ); module.exports = { exp: function (should) { should.equal(test, 'five'); } };