true
correctly in error messages (51291ef
)d95829c
)b6bf1dc
)018f50a
)3fb7424
)b0bab07
)522f073
)6eb431e
)dcecb88
)c0ceacd
)2fd60c4
)1c95714
)55e07a5
)4108a66
)09679a7
)75599d2
)ee81d9c
)9f467b3
)f6bbad7
)5cfec25
)f986f1c
)9166ecf
)ddc00b8
)ecc40e5
)ae3811a
)8eeda6f
)ebc9ed0
)13c7a90
)9053f95
)88a2f61
)4bae637
)72377bf
)19919b5
)9848df0
)3114d7f
)73da792
)cacc348
)4f15c73
)nonEmptyObject
. Thanks to Victor Bakke.nonEmptyArray
. Thanks to Victor Bakke.instance
to instanceStrict
.builtIn
and userDefined
to form new instance
predicate.either
modifier removed.maybe.array.of
.isMap
predicate removed (see builtIn
).error
predicate removed (see builtIn
).builtIn
predicate.userDefined
predicate.emptyString
predicate.infinity
predicate.isMap
. Thanks to Ryan Temple.includes
.equal
.unemptyString
=> nonEmptyString
.error
.greaterOrEqual
.lessOrEqual
.inRange
.function
. Thanks to Paul Jolly.arrayLike
iterable
array.of
arrayLike.of
iterable.of
object.of
map
.map
.hasLength
and like
.length
=> hasLength
.webUrl
. (sorry @bahmutov!)assert
, not
and maybe
into standalone functions as well as modifiers.match
for general regex-matching. Possibly of interest to former users of webUrl
, gitUrl
and email
.contains
.between
.greater
.less
.zero
.emptyArray
.error
.map
.date
predicate returns false
for invalid dates.either
.verify
=> assert
.nulled
=> null
.defined
to undefined
for consistency with null
.webUrl
to reject more cases.gitUrl
. (sorry @galniv!)email
. (sorry @rodrigo!)floatNumber
. (sorry @rodrigo!)oddNumber
, evenNumber
, positiveNumber
, negativeNumber
, intNumber
=> odd
, even
, positive
, negative
, integer
.bool
=> boolean
.every
=> all
.assigned
.apply
batch operation.bool
predicate. Thanks to Clinton Skakun.email
, intNumber
and floatNumber
predicates. Thanks to Rodrigo González.defined
and nulled
. Thanks to Alejandro Villanueva.not
modifier.gitUrl
predicate. Thanks to Gal Niv.check.maybe.verify.xxx
with check.verify.maybe.xxx
.check.xxx
rather than check.isXxx
.check.verify.xxx
rather than check.verifyXxx
. Thanks to Marc-Olivier Ricard.isWebUrl
and verifyWebUrl
. Thanks to Gleb Bahmutov.check.maybe
modifier. Thanks to Marc-Olivier Ricard.check.map
, check.every
and check.any
batch operations. Thanks to Marc-Olivier Ricard.