The value to inspect.
Returns the cast array.
Creates a shallow clone of value.
Note: This method is loosely based on the structured clone algorithm and supports cloning arrays, array buffers, booleans, date objects, maps, numbers, Object objects, regexes, sets, strings, symbols, and typed arrays. The own enumerable properties of arguments objects are cloned as plain objects. An empty object is returned for uncloneable values such as error objects, functions, DOM nodes, and WeakMaps.
The value to clone.
Returns the cloned value.
This method is like _.clone except that it recursively clones value.
The value to recursively clone.
Returns the deep cloned value.
This method is like _.cloneWith except that it recursively clones value.
The value to recursively clone.
The function to customize cloning.
Returns the deep cloned value.
This method is like _.clone except that it accepts customizer which is invoked to produce the cloned value. If customizer returns undefined cloning is handled by the method instead.
The value to clone.
The function to customize cloning.
Returns the cloned value.
Checks if object conforms to source by invoking the predicate properties of source with the corresponding property values of object.
Note: This method is equivalent to _.conforms when source is partially applied.
Performs a SameValueZero
comparison between two values to determine if they are equivalent.
The value to compare.
The other value to compare.
Returns true
if the values are equivalent, else false
.
Checks if value is greater than other.
The value to compare.
The other value to compare.
Returns true if value is greater than other, else false.
Checks if value is greater than or equal to other.
The value to compare.
The other value to compare.
Returns true if value is greater than or equal to other, else false.
Checks if value is classified as an arguments object.
The value to check.
Returns true if value is correctly classified, else false.
Checks if value is classified as an Array object.
The value to check.
Returns true if value is correctly classified, else false.
DEPRECATED
Checks if value is classified as an ArrayBuffer object.
The value to check.
Returns true if value is correctly classified, else false.
Checks if value
is array-like. A value is considered array-like if it's
not a function and has a value.length
that's an integer greater than or
equal to 0
and less than or equal to Number.MAX_SAFE_INTEGER
.
The value to check.
Returns true
if value
is array-like, else false
.
This method is like _.isArrayLike
except that it also checks if value
is an object.
The value to check.
Returns true
if value
is an array-like object, else false
.
Checks if value is classified as a boolean primitive or object.
The value to check.
Returns true if value is correctly classified, else false.
Checks if value is a buffer.
The value to check.
Returns true if value is a buffer, else false.
Checks if value is classified as a Date object.
The value to check.
Returns true if value is correctly classified, else false.
Checks if value is a DOM element.
The value to check.
Returns true if value is a DOM element, else false.
Checks if value is empty. A value is considered empty unless it’s an arguments object, array, string, or jQuery-like collection with a length greater than 0 or an object with own enumerable properties.
The value to inspect.
Returns true if value is empty, else false.
Performs a deep comparison between two values to determine if they are equivalent.
Note: This method supports comparing arrays, array buffers, booleans,
date objects, error objects, maps, numbers, Object
objects, regexes,
sets, strings, symbols, and typed arrays. Object
objects are compared
by their own, not inherited, enumerable properties. Functions and DOM
nodes are not supported.
The value to compare.
The other value to compare.
Returns true
if the values are equivalent, else false
.
This method is like _.isEqual
except that it accepts customizer
which is
invoked to compare values. If customizer
returns undefined
comparisons are
handled by the method instead. The customizer
is invoked with up to seven arguments:
(objValue, othValue [, index|key, object, other, stack]).
The value to compare.
The other value to compare.
Returns true
if the values are equivalent, else false
.
Checks if value is an Error, EvalError, RangeError, ReferenceError, SyntaxError, TypeError, or URIError object.
The value to check.
Returns true if value is an error object, else false.
Checks if value is a finite primitive number.
Note: This method is based on Number.isFinite.
The value to check.
Returns true if value is a finite number, else false.
Checks if value is a callable function.
The value to check.
Returns true if value is correctly classified, else false.
Checks if value
is an integer.
Note: This method is based on Number.isInteger
.
The value to check.
Returns true
if value
is an integer, else false
.
Checks if value
is a valid array-like length.
Note: This function is loosely based on ToLength
.
The value to check.
Returns true
if value
is a valid length, else false
.
Checks if value is classified as a Map object.
The value to check.
Returns true if value is correctly classified, else false.
Performs a deep comparison between object
and source
to determine if
object
contains equivalent property values.
Note: This method supports comparing the same values as _.isEqual
.
The object to inspect.
The object of property values to match.
Returns true
if object
is a match, else false
.
This method is like _.isMatch
except that it accepts customizer
which
is invoked to compare values. If customizer
returns undefined
comparisons
are handled by the method instead. The customizer
is invoked with three
arguments: (objValue, srcValue, index|key, object, source).
The object to inspect.
The object of property values to match.
Returns true
if object
is a match, else false
.
Checks if value is NaN.
Note: This method is not the same as isNaN which returns true for undefined and other non-numeric values.
The value to check.
Returns true if value is NaN, else false.
Checks if value is a native function.
The value to check.
Checks if value
is null
or undefined
.
The value to check.
Returns true
if value
is nullish, else false
.
Checks if value is null.
The value to check.
Returns true if value is null, else false.
Checks if value is classified as a Number primitive or object.
Note: To exclude Infinity, -Infinity, and NaN, which are classified as numbers, use the _.isFinite method.
The value to check.
Returns true if value is correctly classified, else false.
Checks if value is the language type of Object. (e.g. arrays, functions, objects, regexes, new Number(0), and new String(''))
The value to check.
Returns true if value is an object, else false.
Checks if value
is object-like. A value is object-like if it's not null
and has a typeof
result of "object".
The value to check.
Returns true
if value
is object-like, else false
.
Checks if value is a plain object, that is, an object created by the Object constructor or one with a [[Prototype]] of null.
Note: This method assumes objects created by the Object constructor have no inherited enumerable properties.
The value to check.
Returns true if value is a plain object, else false.
Checks if value is classified as a RegExp object.
The value to check.
Returns true if value is correctly classified, else false.
Checks if value
is a safe integer. An integer is safe if it's an IEEE-754
double precision number which isn't the result of a rounded unsafe integer.
Note: This method is based on Number.isSafeInteger
.
The value to check.
Returns true
if value
is a safe integer, else false
.
Checks if value is classified as a Set object.
The value to check.
Returns true if value is correctly classified, else false.
Checks if value is classified as a String primitive or object.
The value to check.
Returns true if value is correctly classified, else false.
Checks if value
is classified as a Symbol
primitive or object.
The value to check.
Returns true
if value
is correctly classified, else false
.
Checks if value is classified as a typed array.
The value to check.
Returns true if value is correctly classified, else false.
Checks if value is undefined.
The value to check.
Returns true if value is undefined, else false.
Checks if value is classified as a WeakMap object.
The value to check.
Returns true if value is correctly classified, else false.
Checks if value is classified as a WeakSet object.
The value to check.
Returns true if value is correctly classified, else false.
Checks if value is less than other.
The value to compare.
The other value to compare.
Returns true if value is less than other, else false.
Checks if value is less than or equal to other.
The value to compare.
The other value to compare.
Returns true if value is less than or equal to other, else false.
Converts value to an array.
The value to convert.
Returns the converted array.
Converts value
to a finite number.
The value to convert.
Returns the converted number.
Converts value
to an integer.
Note: This function is loosely based on ToInteger
.
The value to convert.
Returns the converted integer.
Converts value
to an integer suitable for use as the length of an
array-like object.
Note: This method is based on ToLength
.
The value to convert.
Returns the converted integer.
Converts value
to a number.
The value to process.
Returns the number.
Converts value to a plain object flattening inherited enumerable properties of value to own properties of the plain object.
The value to convert.
Returns the converted plain object.
Converts value
to a safe integer. A safe integer can be compared and
represented correctly.
The value to convert.
Returns the converted integer.
Converts value
to a string if it's not one. An empty string is returned
for null
and undefined
values. The sign of -0
is preserved.
The value to process.
Returns the string.
Generated using TypeDoc
Casts value as an array if it’s not one.