The IIf function in Javascript
var iif = require('iif')
Returns ifTrue
if condition
is truthy. Otherwise, returns ifFalse
.
var iif = require('iif/branch')
Same as above, but additionally calls the argument being returned if it's a function.
CC0-1.0