|
Last change
on this file since ba17441 was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago |
|
Added visualizations
|
-
Property mode
set to
100644
|
|
File size:
512 bytes
|
| Line | |
|---|
| 1 | /**
|
|---|
| 2 | * Performs a `SameValueZero` comparison between two values to determine if they are equivalent.
|
|---|
| 3 | *
|
|---|
| 4 | * @param {any} value - The value to compare.
|
|---|
| 5 | * @param {any} other - The other value to compare.
|
|---|
| 6 | * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
|---|
| 7 | *
|
|---|
| 8 | * @example
|
|---|
| 9 | * eq(1, 1); // true
|
|---|
| 10 | * eq(0, -0); // true
|
|---|
| 11 | * eq(NaN, NaN); // true
|
|---|
| 12 | * eq('a', Object('a')); // false
|
|---|
| 13 | */
|
|---|
| 14 | declare function isEqualsSameValueZero(value: any, other: any): boolean;
|
|---|
| 15 |
|
|---|
| 16 | export { isEqualsSameValueZero };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.