time-to-botec/js/node_modules/@stdlib/assert/deep-equal/docs/repl.txt

32 lines
528 B
Plaintext
Raw Normal View History

{{alias}}( a, b )
Tests for deep equality between two values.
Parameters
----------
a: any
First comparison value.
b: any
Second comparison value.
Returns
-------
out: bool
Boolean indicating if `a` is deep equal to `b`.
Examples
--------
> var bool = {{alias}}( [ 1, 2, 3 ], [ 1, 2, 3 ] )
true
> bool = {{alias}}( [ 1, 2, 3 ], [ 1, 2, '3' ] )
false
> bool = {{alias}}( { 'a': 2 }, { 'a': [ 2 ] } )
false
See Also
--------