`and` and `or` should return a boolean value if all items in the argument array are values (not functions)
richytong opened this issue · 0 comments
richytong commented
and
and or
should also accept a mix of function and non function items in the argument array, in which case it returns a function that treats the non function items as already resolved for comparison
and([true, true, true]) // true
const myObj = { a: 1 }
and([true, obj => obj.a == 1])(myObj) // true