-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Description
Hello, what about extending the isBoolean function by allowing :
- "True"/"False" as valid boolean
- "yes"/"no" as valid boolean (can be discussed but could make sense)
validator.js/src/lib/isBoolean.js
Line 5 in d1a9b6d
return (['true', 'false', '1', '0'].indexOf(str) >= 0); |