blob: 22cc648ddd3f31c9f373af99c9ec119f864af3b2 [file] [log] [blame] [edit]
export function unless(predicate, whenFalse){
if (arguments.length === 1){
return _whenFalse => unless(predicate, _whenFalse)
}
return input => predicate(input) ? input : whenFalse(input)
}