checko

1.0.1

areDeepEqual

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.

areDeepEqual(expected: any, value: any)
Parameters
expected (any) The expected value.
value (any) The value.

areEqual

Returns true when value is strictly equal to expected, false otherwise.

areEqual(value: any, expected: any): any
Parameters
value (any) The value.
expected (any) The value with which value is compared.
Returns
any: Returns the result of the comparison.

areInequal

Returns true when value is strictly inequal to expected, false otherwise.

areInequal(value: any, expected: any): any
Parameters
value (any) The value.
expected (any) The value with which value is compared.
Returns
any: Returns the result of the comparison.

areLooseEqual

Returns true when value is loosely equal to expected, false otherwise.

areLooseEqual(value: any, expected: any): any
Parameters
value (any) The value.
expected (any) The value with which value is compared.
Returns
any: Returns the result of the comparison.

areLooseInequal

Returns true when value is loosely inequal to expected, false otherwise.

areLooseInequal(value: any, expected: any): any
Parameters
value (any) The value.
expected (any) The value with which value is compared.
Returns
any: Returns the result of the comparison.

areSame

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.

areSame(value: any, expected: any): any
Parameters
value (any) The value.
expected (any) The value with which value is compared.
Returns
any: Returns the result of the comparison.

doesMatch

Returns true if the provided string matches the expected regex, false otherwise.

doesMatch(value: string, expected: regexp): any
Parameters
value (string) The value.
expected (regexp) The regular expression.
Returns
any: Whether or not value matches regex.

doesThrow

Returns true if the provided function throws an exception.

doesThrow(function_: function, this_: [object], arguments_: [Array])
Parameters
function_ (function) The function that should throw.
this_ ([object] (default this) ) Optional this reference to call the function with.
arguments_ ([Array] (default []) ) Optional arguments to call the function with.

expectArguments

Throws an exception when value is not a Arguments.

expectArguments(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectArray

Throws an exception when value is not a Array.

expectArray(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectArrayBuffer

Throws an exception when value is not a ArrayBuffer.

expectArrayBuffer(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectArrayOfLength

Throws an exception if the given value is not an array of the given length.

expectArrayOfLength(value: array, length: number): any
Parameters
value (array) The array.
length (number) The expected length.
Returns
any: Returns the passed value.

expectArrayOfLength

Throws an exception if the given value is not an empty array.

expectArrayOfLength(value: number): any
Parameters
value (number) The array.
Returns
any: Returns the passed value.

expectAtLeast

Throws an exception when value is not at least expected.

expectAtLeast(value: any, expected: any): any
Parameters
value (any) The value.
expected (any) The value with which value is compared.
Returns
any: Returns the passed value.

expectAtMost

Throws an exception when value is not at most expected.

expectAtMost(value: any, expected: any): any
Parameters
value (any) The value.
expected (any) The value with which value is compared.
Returns
any: Returns the passed value.

expectBinaryFunction

Throws an exception when value is not a binary function.

expectBinaryFunction(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectBoolean

Throws an exception when value is not true or false.

expectBoolean(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectDataView

Throws an exception when value is not a DataView.

expectDataView(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectDate

Throws an exception when value is not a Date.

expectDate(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectDeepEqual

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.

expectDeepEqual(value: any, arity: any, expected: any): any
Parameters
value (any) The value.
arity (any) The expected value.
expected (any)
Returns
any: Returns the passed value.

expectEmptyString

Throws an exception when value is not an empty string.

expectEmptyString(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectEqual

Throws an exception when value is not strictly equal to expected.

expectEqual(value: any, expected: any): any
Parameters
value (any) The value.
expected (any) The value with which value is compared.
Returns
any: Returns the passed value.

expectError

Throws an exception when value is not a Error.

expectError(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectEven

Throws an exception when value is not even.

expectEven(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectEvenInteger

Throws an exception when value is not an even integer.

expectEvenInteger(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectFalse

Throws an exception when value is not false.

expectFalse(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectFalsy

Throws an exception when value is not falsy.

expectFalsy(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectFiniteNumber

Throws an exception when value is not a finite number.

expectFiniteNumber(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectFloat32Array

Throws an exception when value is not a Float32Array.

expectFloat32Array(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectFloat64Array

Throws an exception when value is not a Float64Array.

expectFloat64Array(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectFunction

Throws an exception when value is not a function.

expectFunction(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectSame

Throws an exception when value is not a function of a given arity.

expectSame(value: any, arity: any): any
Parameters
value (any) The function.
arity (any) The expected arity.
Returns
any: Returns the passed function.

expectSame

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.

expectSame(value: any, expected: any): any
Parameters
value (any) The value.
expected (any) The value with which value is compared.
Returns
any: Returns the passed value.

expectGeneratorFunction

Throws an exception when value is not a GeneratorFunction.

expectGeneratorFunction(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectInequal

Throws an exception when value is not strictly inequal to expected.

expectInequal(value: any, expected: any): any
Parameters
value (any) The value.
expected (any) The value with which value is compared.
Returns
any: Returns the passed value.

expectInfinite

Throws an exception when value is not an infinite number.

expectInfinite(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectInt16Array

Throws an exception when value is not a Int16Array.

expectInt16Array(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectInt32Array

Throws an exception when value is not a Int32Array.

expectInt32Array(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectInt8Array

Throws an exception when value is not a Int8Array.

expectInt8Array(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectInteger

Throws an exception when value is not an integer.

expectInteger(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectIntegerNumber

Throws an exception when value is not an integer number.

expectIntegerNumber(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectLessThan

Throws an exception when value is not less than expected.

expectLessThan(value: any, expected: any): any
Parameters
value (any) The value.
expected (any) The value with which value is compared.
Returns
any: Returns the passed value.

expectLooseEqual

Throws an exception when value is not loosely equal to expected.

expectLooseEqual(value: any, expected: any): any
Parameters
value (any) The value.
expected (any) The value with which value is compared.
Returns
any: Returns the passed value.

expectLooseInequal

Throws an exception when value is not loosely inequal to expected.

expectLooseInequal(value: any, expected: any): any
Parameters
value (any) The value.
expected (any) The value with which value is compared.
Returns
any: Returns the passed value.

expectMap

Throws an exception when value is not a Map.

expectMap(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectMoreThan

Throws an exception when value is not more than expected.

expectMoreThan(value: any, expected: any): any
Parameters
value (any) The value.
expected (any) The value with which value is compared.
Returns
any: Returns the passed value.

expectNaN

Throws an exception when value is not NaN.

expectNaN(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectNegative

Throws an exception when value is not negative.

expectNegative(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectNegativeInfinity

Throws an exception when value is not -∞.

expectNegativeInfinity(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectNegativeInteger

Throws an exception when value is not a negative integer.

expectNegativeInteger(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectNegativeNumber

Throws an exception when value is not a negative number.

expectNegativeNumber(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectNegativeOne

Throws an exception when value is not -1.

expectNegativeOne(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectNegativeZero

Throws an exception when value is not -0.

expectNegativeZero(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectNonEmptyArray

Throws an exception if the given value is not an array or if it is empty.

expectNonEmptyArray(value: number): any
Parameters
value (number) The array.
Returns
any: Returns the passed value.

expectNonEmptyString

Throws an exception when value is not a non-empty string.

expectNonEmptyString(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectNonNegative

Throws an exception when value is not non-negative.

expectNonNegative(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectNonNegativeInteger

Throws an exception when value is not a non-negative integer.

expectNonNegativeInteger(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectNonNegativeNumber

Throws an exception when value is not a non-negative number.

expectNonNegativeNumber(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectNonPositive

Throws an exception when value is not non-positive.

expectNonPositive(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectNonPositiveInteger

Throws an exception when value is not a non-positive integer.

expectNonPositiveInteger(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectNonPositiveNumber

Throws an exception when value is not a non-positive number.

expectNonPositiveNumber(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectNull

Throws an exception when value is not null.

expectNull(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectNullaryFunction

Throws an exception when value is not a nullary function.

expectNullaryFunction(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectNumber

Throws an exception when value is not a number.

expectNumber(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectObject

Throws an exception when value is not an object.

expectObject(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectOdd

Throws an exception when value is not odd.

expectOdd(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectOddInteger

Throws an exception when value is not an odd integer.

expectOddInteger(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectOne

Throws an exception when value is not 1.

expectOne(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectOwnDescriptorSatisfying

Throws an exception if the provided value does not have a property descriptor under the provided key satisfying the provided assertion.

expectOwnDescriptorSatisfying(value: object, key: string, assertion: function): object
Parameters
value (object) The object.
key (string) The property key.
assertion (function) The assertion.
Returns
object: Returns the value.

expectOwnDescriptorSatisfying

Throws an exception if the given value does not own a property for the given key satisfying the given assertion.

expectOwnDescriptorSatisfying(value: object, key: string, assertion: function): object
Parameters
value (object) The object.
key (string) The property key.
assertion (function) The assertion.
Returns
object: Returns the value.

expectOwnProperty

Throws an exception if the provided value does not have a property called key.

expectOwnProperty(value: string, key: object): any
Parameters
value (string) The object.
key (object) The property key.
Returns
any: Whether or not value has own property key.

expectPositive

Throws an exception when value is not positive.

expectPositive(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectPositiveInfinity

Throws an exception when value is not +∞.

expectPositiveInfinity(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectPositiveInteger

Throws an exception when value is not a positive integer.

expectPositiveInteger(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectPositiveNumber

Throws an exception when value is not a positive number.

expectPositiveNumber(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectPositiveZero

Throws an exception when value is not +0.

expectPositiveZero(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectRegExp

Throws an exception when value is not a RegExp.

expectRegExp(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectSet

Throws an exception when value is not a Set.

expectSet(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectString

Throws an exception when value is not a string.

expectString(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectSymbol

Throws an exception when value is not a symbol.

expectSymbol(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectTernaryFunction

Throws an exception when value is not a ternary function.

expectTernaryFunction(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectToMatch

Throws an exception if the provided string does not match the provided RegExp.

expectToMatch(value: string, expected: regexp): string
Parameters
value (string) The value.
expected (regexp) The regular expression.
Returns
string: Returns the passed value.

expectToThrow

Throws an exception when the provided function does not throw an exception.

expectToThrow(function_: function, this_: [object], arguments_: [Array]): function
Parameters
function_ (function) The function that should throw.
this_ ([object] (default this) ) Optional this reference to call the function with.
arguments_ ([Array] (default []) ) Optional arguments to call the function with.
Returns
function:

expectTrue

Throws an exception when value is not true.

expectTrue(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectTruthy

Throws an exception when value is not truthy.

expectTruthy(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectUint16Array

Throws an exception when value is not a Uint16Array.

expectUint16Array(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectUint32Array

Throws an exception when value is not a Uint32Array.

expectUint32Array(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectUint8Array

Throws an exception when value is not a Uint8Array.

expectUint8Array(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectUint8ClampedArray

Throws an exception when value is not a Uint8ClampedArray.

expectUint8ClampedArray(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectUnaryFunction

Throws an exception when value is not a unary function.

expectUnaryFunction(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectUndefined

Throws an exception when value is not undefined.

expectUndefined(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectWeakMap

Throws an exception when value is not a WeakMap.

expectWeakMap(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectWeakSet

Throws an exception when value is not a WeakSet.

expectWeakSet(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

expectZero

Throws an exception when value is not 0.

expectZero(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the passed value.

hasOwnDescriptorSatisfying

Returns true if the provided value has a property descriptor for the given key satisfying a given predicate.

hasOwnDescriptorSatisfying(value: object, key: string, predicate: function)
Parameters
value (object) The object.
key (string) The property key.
predicate (function) The predicate.

hasOwnProperty

Returns true if the provided value has a property called key.

hasOwnProperty(value: string, key: object): any
Parameters
value (string) The property name.
key (object) The object.
Returns
any: Whether or not value has own property key.

hasOwnPropertySatisfying

Returns true if the given value owns a property for the given key satisfying a given predicate, false otherwise.

hasOwnPropertySatisfying(value: object, key: string, predicate: function)
Parameters
value (object) The object.
key (string) The property key.
predicate (function) The predicate.

isArguments

Returns true if value is a Arguments, false otherwise.

isArguments(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isArray

Returns true if value is a Array, false otherwise.

isArray(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isArrayBuffer

Returns true if value is a ArrayBuffer, false otherwise.

isArrayBuffer(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isArrayOfLength

Returns true if the given value is an array of the given length, false otherwise.

isArrayOfLength(value: number, length: function)
Parameters
value (number) The array.
length (function) The expected length.

isAtLeast

Returns true when value is at least expected, false otherwise.

isAtLeast(value: any, expected: any): any
Parameters
value (any) The value.
expected (any) The value with which value is compared.
Returns
any: Returns the result of the comparison.

isAtMost

Returns true when value is at most expected, false otherwise.

isAtMost(value: any, expected: any): any
Parameters
value (any) The value.
expected (any) The value with which value is compared.
Returns
any: Returns the result of the comparison.

isBinaryFunction

Returns true if value is a binary function, false otherwise.

isBinaryFunction(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isBoolean

Returns true if value is true or false, false otherwise.

isBoolean(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isDataView

Returns true if value is a DataView, false otherwise.

isDataView(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isDate

Returns true if value is a Date, false otherwise.

isDate(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isEmptyArray

Returns true if the given value is an empty array, false otherwise.

isEmptyArray(value: array)
Parameters
value (array) The array.

isEmptyString

Returns true if value is an empty string, false otherwise.

isEmptyString(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isError

Returns true if value is a Error, false otherwise.

isError(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isEven

Returns true if value is even, false otherwise.

isEven(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isEvenInteger

Returns true if value is an even integer, false otherwise.

isEvenInteger(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isFalse

Returns true if value is false, false otherwise.

isFalse(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isFalsy

Returns true if value is falsy, false otherwise.

isFalsy(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isFiniteNumber

Returns true if value is a finite number, false otherwise.

isFiniteNumber(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isFloat32Array

Returns true if value is a Float32Array, false otherwise.

isFloat32Array(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isFloat64Array

Returns true if value is a Float64Array, false otherwise.

isFloat64Array(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isFunction

Returns true if value is a function, false otherwise.

isFunction(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isFunctionOfArity

Returns true if the passed value is a function of the passed arity, false otherwise.

isFunctionOfArity(value: array, arity: number)
Parameters
value (array) The function.
arity (number) The expected arity.

isGeneratorFunction

Returns true if value is a GeneratorFunction, false otherwise.

isGeneratorFunction(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isInfinite

Returns true if value is an infinite number, false otherwise.

isInfinite(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isInt16Array

Returns true if value is a Int16Array, false otherwise.

isInt16Array(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isInt32Array

Returns true if value is a Int32Array, false otherwise.

isInt32Array(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isInt8Array

Returns true if value is a Int8Array, false otherwise.

isInt8Array(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isInteger

Returns true if value is an integer, false otherwise.

isInteger(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isIntegerNumber

Returns true if value is an integer number, false otherwise.

isIntegerNumber(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isLessThan

Returns true when value is less than expected, false otherwise.

isLessThan(value: any, expected: any): any
Parameters
value (any) The value.
expected (any) The value with which value is compared.
Returns
any: Returns the result of the comparison.

isMap

Returns true if value is a Map, false otherwise.

isMap(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isMoreThan

Returns true when value is more than expected, false otherwise.

isMoreThan(value: any, expected: any): any
Parameters
value (any) The value.
expected (any) The value with which value is compared.
Returns
any: Returns the result of the comparison.

isNaN

Returns true if value is NaN, false otherwise.

isNaN(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isNegative

Returns true if value is negative, false otherwise.

isNegative(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isNegativeInfinity

Returns true if value is -∞, false otherwise.

isNegativeInfinity(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isNegativeInteger

Returns true if value is a negative integer, false otherwise.

isNegativeInteger(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isNegativeNumber

Returns true if value is a negative number, false otherwise.

isNegativeNumber(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isNegativeOne

Returns true if value is -1, false otherwise.

isNegativeOne(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isNegativeZero

Returns true if value is -0, false otherwise.

isNegativeZero(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isNonEmptyArray

Returns true if the given value is a non-empty array, false otherwise.

isNonEmptyArray(value: array)
Parameters
value (array) The array.

isNonEmptyString

Returns true if value is a non-empty string, false otherwise.

isNonEmptyString(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isNonNegative

Returns true if value is non-negative, false otherwise.

isNonNegative(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isNonNegativeInteger

Returns true if value is a non-negative integer, false otherwise.

isNonNegativeInteger(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isNonNegativeNumber

Returns true if value is a non-negative number, false otherwise.

isNonNegativeNumber(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isNonPositive

Returns true if value is non-positive, false otherwise.

isNonPositive(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isNonPositiveInteger

Returns true if value is a non-positive integer, false otherwise.

isNonPositiveInteger(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isNonPositiveNumber

Returns true if value is a non-positive number, false otherwise.

isNonPositiveNumber(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isNull

Returns true if value is null, false otherwise.

isNull(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isNullaryFunction

Returns true if value is a nullary function, false otherwise.

isNullaryFunction(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isNumber

Returns true if value is a number, false otherwise.

isNumber(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isObject

Returns true if value is an object, false otherwise.

isObject(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isOdd

Returns true if value is odd, false otherwise.

isOdd(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isOddInteger

Returns true if value is an odd integer, false otherwise.

isOddInteger(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isOne

Returns true if value is 1, false otherwise.

isOne(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isPositive

Returns true if value is positive, false otherwise.

isPositive(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isPositiveInfinity

Returns true if value is +∞, false otherwise.

isPositiveInfinity(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isPositiveInteger

Returns true if value is a positive integer, false otherwise.

isPositiveInteger(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isPositiveNumber

Returns true if value is a positive number, false otherwise.

isPositiveNumber(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isPositiveZero

Returns true if value is +0, false otherwise.

isPositiveZero(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isRegExp

Returns true if value is a RegExp, false otherwise.

isRegExp(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isSet

Returns true if value is a Set, false otherwise.

isSet(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isString

Returns true if value is a string, false otherwise.

isString(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isSymbol

Returns true if value is a symbol, false otherwise.

isSymbol(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isTernaryFunction

Returns true if value is a ternary function, false otherwise.

isTernaryFunction(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isTrue

Returns true if value is true, false otherwise.

isTrue(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isTruthy

Returns true if value is truthy, false otherwise.

isTruthy(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isUint16Array

Returns true if value is a Uint16Array, false otherwise.

isUint16Array(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isUint32Array

Returns true if value is a Uint32Array, false otherwise.

isUint32Array(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isUint8Array

Returns true if value is a Uint8Array, false otherwise.

isUint8Array(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isUint8ClampedArray

Returns true if value is a Uint8ClampedArray, false otherwise.

isUint8ClampedArray(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isUnaryFunction

Returns true if value is a unary function, false otherwise.

isUnaryFunction(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isUndefined

Returns true if value is undefined, false otherwise.

isUndefined(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isWeakMap

Returns true if value is a WeakMap, false otherwise.

isWeakMap(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isWeakSet

Returns true if value is a WeakSet, false otherwise.

isWeakSet(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.

isZero

Returns true if value is 0, false otherwise.

isZero(value: any): any
Parameters
value (any) The value.
Returns
any: Returns the result of the comparison.