Skip to content

Latest commit

 

History

History
8 lines (6 loc) · 187 Bytes

negate.md

File metadata and controls

8 lines (6 loc) · 187 Bytes

negate

Create a function that will return a Boolean negation of the result of the provided predicate.

const isEven = (d) => d % 2 == 0
    , isOdd = negate(isEven)