1.0.1
Returns true if value is deep equal to expected, false otherwise. Ignores properties on the prototype of objects and -0 is the same as +0. Allows for custom comparisons of instances if the class provides a static equal or compare method.
(any)
The expected value.
(any)
The value.
Returns true when value is strictly equal to expected, false otherwise.
(any)
The value.
(any)
The value with which value is compared.
any
:
Returns the result of the comparison.
Returns true when value is strictly inequal to expected, false otherwise.
(any)
The value.
(any)
The value with which value is compared.
any
:
Returns the result of the comparison.
Returns true when value is loosely equal to expected, false otherwise.
(any)
The value.
(any)
The value with which value is compared.
any
:
Returns the result of the comparison.
Returns true when value is loosely inequal to expected, false otherwise.
(any)
The value.
(any)
The value with which value is compared.
any
:
Returns the result of the comparison.
Returns true when value is the same value as expected, false otherwise. Returns true if both values are NaN, returns false if one value is +0 and the other -0.
(any)
The value.
(any)
The value with which value is compared.
any
:
Returns the result of the comparison.
Returns true if the provided string matches the expected regex, false otherwise.
any
:
Whether or not value matches regex.
Returns true if the provided function throws an exception.
Throws an exception when value is not a Arguments.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not a Array.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not a ArrayBuffer.
(any)
The value.
any
:
Returns the passed value.
Throws an exception if the given value is not an array of the given length.
any
:
Returns the passed value.
Throws an exception if the given value is not an empty array.
(number)
The array.
any
:
Returns the passed value.
Throws an exception when value is not at least expected.
(any)
The value.
(any)
The value with which value is compared.
any
:
Returns the passed value.
Throws an exception when value is not at most expected.
(any)
The value.
(any)
The value with which value is compared.
any
:
Returns the passed value.
Throws an exception when value is not a binary function.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not true or false.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not a DataView.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not a Date.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not deep equal to expected. Ignores properties on the prototype of objects and -0 is the same as +0. Allows for custom comparisons of instances if the class provides a static equal or compare method.
(any)
The value.
(any)
The expected value.
(any)
any
:
Returns the passed value.
Throws an exception when value is not an empty string.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not strictly equal to expected.
(any)
The value.
(any)
The value with which value is compared.
any
:
Returns the passed value.
Throws an exception when value is not a Error.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not even.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not an even integer.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not false.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not falsy.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not a finite number.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not a Float32Array.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not a Float64Array.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not a function.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not a function of a given arity.
(any)
The function.
(any)
The expected arity.
any
:
Returns the passed function.
Throws an exception when value is not the same value as expected. Returns NaN if both values are NaN, throws if one value is +0 and the other -0.
(any)
The value.
(any)
The value with which value is compared.
any
:
Returns the passed value.
Throws an exception when value is not a GeneratorFunction.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not strictly inequal to expected.
(any)
The value.
(any)
The value with which value is compared.
any
:
Returns the passed value.
Throws an exception when value is not an infinite number.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not a Int16Array.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not a Int32Array.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not a Int8Array.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not an integer.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not an integer number.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not less than expected.
(any)
The value.
(any)
The value with which value is compared.
any
:
Returns the passed value.
Throws an exception when value is not loosely equal to expected.
(any)
The value.
(any)
The value with which value is compared.
any
:
Returns the passed value.
Throws an exception when value is not loosely inequal to expected.
(any)
The value.
(any)
The value with which value is compared.
any
:
Returns the passed value.
Throws an exception when value is not a Map.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not more than expected.
(any)
The value.
(any)
The value with which value is compared.
any
:
Returns the passed value.
Throws an exception when value is not NaN.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not negative.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not -∞.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not a negative integer.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not a negative number.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not -1.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not -0.
(any)
The value.
any
:
Returns the passed value.
Throws an exception if the given value is not an array or if it is empty.
(number)
The array.
any
:
Returns the passed value.
Throws an exception when value is not a non-empty string.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not non-negative.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not a non-negative integer.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not a non-negative number.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not non-positive.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not a non-positive integer.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not a non-positive number.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not null.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not a nullary function.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not a number.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not an object.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not odd.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not an odd integer.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not 1.
(any)
The value.
any
:
Returns the passed value.
Throws an exception if the provided value does not have a property descriptor under the provided key satisfying the provided assertion.
object
:
Returns the value.
Throws an exception if the given value does not own a property for the given key satisfying the given assertion.
object
:
Returns the value.
Throws an exception if the provided value does not have a property called key.
any
:
Whether or not value has own property key.
Throws an exception when value is not positive.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not +∞.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not a positive integer.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not a positive number.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not +0.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not a RegExp.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not a Set.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not a string.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not a symbol.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not a ternary function.
(any)
The value.
any
:
Returns the passed value.
Throws an exception if the provided string does not match the provided RegExp.
string
:
Returns the passed value.
Throws an exception when the provided function does not throw an exception.
(function)
The function that should throw.
([object]
(default this
)
)
Optional this reference to call the function with.
([Array]
(default []
)
)
Optional arguments to call the function with.
function
:
Throws an exception when value is not true.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not truthy.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not a Uint16Array.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not a Uint32Array.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not a Uint8Array.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not a Uint8ClampedArray.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not a unary function.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not undefined.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not a WeakMap.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not a WeakSet.
(any)
The value.
any
:
Returns the passed value.
Throws an exception when value is not 0.
(any)
The value.
any
:
Returns the passed value.
Returns true if the provided value has a property descriptor for the given key satisfying a given predicate.
Returns true if the provided value has a property called key.
any
:
Whether or not value has own property key.
Returns true if the given value owns a property for the given key satisfying a given predicate, false otherwise.
Returns true if value is a Arguments, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is a Array, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is a ArrayBuffer, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if the given value is an array of the given length, false otherwise.
Returns true when value is at least expected, false otherwise.
(any)
The value.
(any)
The value with which value is compared.
any
:
Returns the result of the comparison.
Returns true when value is at most expected, false otherwise.
(any)
The value.
(any)
The value with which value is compared.
any
:
Returns the result of the comparison.
Returns true if value is a binary function, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is true or false, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is a DataView, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is a Date, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if the given value is an empty array, false otherwise.
(array)
The array.
Returns true if value is an empty string, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is a Error, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is even, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is an even integer, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is false, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is falsy, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is a finite number, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is a Float32Array, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is a Float64Array, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is a function, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if the passed value is a function of the passed arity, false otherwise.
Returns true if value is a GeneratorFunction, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is an infinite number, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is a Int16Array, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is a Int32Array, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is a Int8Array, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is an integer, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is an integer number, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true when value is less than expected, false otherwise.
(any)
The value.
(any)
The value with which value is compared.
any
:
Returns the result of the comparison.
Returns true if value is a Map, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true when value is more than expected, false otherwise.
(any)
The value.
(any)
The value with which value is compared.
any
:
Returns the result of the comparison.
Returns true if value is NaN, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is negative, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is -∞, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is a negative integer, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is a negative number, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is -1, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is -0, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if the given value is a non-empty array, false otherwise.
(array)
The array.
Returns true if value is a non-empty string, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is non-negative, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is a non-negative integer, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is a non-negative number, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is non-positive, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is a non-positive integer, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is a non-positive number, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is null, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is a nullary function, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is a number, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is an object, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is odd, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is an odd integer, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is 1, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is positive, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is +∞, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is a positive integer, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is a positive number, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is +0, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is a RegExp, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is a Set, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is a string, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is a symbol, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is a ternary function, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is true, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is truthy, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is a Uint16Array, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is a Uint32Array, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is a Uint8Array, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is a Uint8ClampedArray, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is a unary function, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is undefined, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is a WeakMap, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is a WeakSet, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.
Returns true if value is 0, false otherwise.
(any)
The value.
any
:
Returns the result of the comparison.