UNPKG

iif

Version:

The IIf function in Javascript

7 lines (6 loc) 126 B
module.exports = function iif(condition, ifTrue, ifFalse) { if (condition) { return ifTrue } return ifFalse }