Comment on page
not :: Function → a → Boolean
Takes a function
, and returns a new one receiving a value
and returning the opposite of what
would have returned.
It is largely used within the library itself.
/* Part of the contains validator */
const contains = (value) => compose(
when(isString, (string) => string.includes(value)),
when(not(or(isString, Array.isArray)), stubFalse),