sindresorhus / ow

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

Ow identification method #161

Open Riim opened 4 years ago

Riim commented 4 years ago

joi has a field isJoi=true. Is there an analog in ow? Maybe use isPredicate for this?

Riim commented 4 years ago

Until found such way to:

arg2 instanceof Predicate || arg2 instanceof AnyPredicate

This is probably enough.

sindresorhus commented 4 years ago

What problem are you trying to solve?