Value to test.
Predicate to test against.
Test if value
matches the provided predicate
. Throws an ArgumentError
with the specified label
if the test fails.
Value to test.
Label which should be used in error messages.
Predicate to test against.
Test the value to be an array.
Test the value to be a ArrayBuffer.
Test the value to be a boolean.
Test the value to be a Buffer.
Test the value to be a DataView.
Test the value to be a Date.
Test the value to be an Error.
Test the value to be a Float32Array.
Test the value to be a Float64Array.
Test the value to be a Function.
Test the value to be a Int16Array.
Test the value to be a Int32Array.
Test the value to be a Int8Array.
Test the value to be Iterable.
Test the value to be a Map.
Test the value to be not a number.
Test the value to be null.
Test the value to be null or undefined.
Test the value to be a number.
Test the value to be an object.
Test the value to be a Promise.
Test the value to be a RegExp.
Test the value to be a Set.
Test the value to be a string.
Test the value to be a Symbol.
Test the value to be a typed array.
Test the value to be a Uint16Array.
Test the value to be a Uint32Array.
Test the value to be a Uint8Array.
Test the value to be a Uint8ClampedArray.
Test the value to be undefined.
Test the value to be a WeakMap.
Test the value to be a WeakSet.
Test that the value matches at least one of the given predicates.
Create a reusable validator.
Predicate used in the validator function.
Create a reusable validator.
Label which should be used in error messages.
Predicate used in the validator function.
Returns true
if the value matches the predicate, otherwise returns false
.
Value to test.
Predicate to test against.
Test if the value matches the predicate. Throws an
ArgumentError
if the test fails.