sindresorhus / ow

Function argument validation for humans
https://sindresorhus.com/ow/
MIT License
3.81k stars 108 forks source link

Add invert modifier for all predicates #158

Closed Rastopyr closed 4 years ago

Rastopyr commented 5 years ago

Hi guys,

this PR add not modifier to all predicates and should fix #148

// Chain from any predicate instance
ow('2', ow.any(ow.not.number, ow.not.string.numeric))

// Chain from any predicate rule(because it the same predicate instance)
ow(undefined, ow.not.undefined)