(optional if T
is void
) The predicate's parameter
A boolean result, making a statement about the given parameter.
A predicate that always verifies.
true
.
Check if the subject
is an Array
(can be used as a type guard).
the variable to check.
true
the given parameter is an Array
, false
otherwise.
Check if the subject
is a boolean
(can be used as a type guard).
Will return false
if the subject
is a Boolean
object.
the variable to check.
true
the given parameter is a boolean
, false
otherwise.
A predicate that verifies if the subject
is false
.
Will return false
if the subject
is new Boolean(false)
.
true
the subject
is false
, false
otherwise.
A predicate that verifies if the subject
is falsy.
Will return false
if the subject
is new Boolean(false)
.
true
the subject
is falsy, false
otherwise.
Check if the subject
is a Map
(can be used as a type guard).
the variable to check.
true
the given parameter is a Map
, false
otherwise.
Check if the subject
is undefined
or null
.
the variable to check.
true
the given parameter is undefined
or null
, false
otherwise.
Check if the subject
is null
(can be used as a type guard).
the variable to check.
true
the given parameter is null
, false
otherwise.
Check if the subject
is a number
(can be used as a type guard).
Will return true
if the subject
is NaN
.
the variable to check.
true
the given parameter is a number
, false
otherwise.
Check if the subject
is a RegExp
(can be used as a type guard).
the variable to check.
true
the given parameter is a RegExp
, false
otherwise.
Check if the subject
is a Set
(can be used as a type guard).
the variable to check.
true
the given parameter is a Set
, false
otherwise.
Check if the subject
is a string
(can be used as a type guard).
the variable to check.
true
the given parameter is a string
, false
otherwise.
A predicate that verifies if the subject
is true
.
Will return false
if the subject
is new Boolean(true)
.
true
the subject
is true
, false
otherwise.
A predicate that verifies if the subject
is truthy.
Will return true
if the subject
is new Boolean(false)
.
true
the subject
is truthy, false
otherwise.
Check if the subject
is undefined
(can be used as a type guard).
the variable to check.
true
the given parameter is undefined
, false
otherwise.
A predicate that never verifies.
false
.
Alias for never
.
See never.
Alias for isFalsy
.
See isFalsy.
Alias for always
.
See always.
Generated using TypeDoc
A statement that may be true or false depending on the values of its variable.