source: node_modules/es-toolkit/dist/predicate/isEqual.d.mts

Last change on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago

Added visualizations

  • Property mode set to 100644
File size: 591 bytes
Line 
1/**
2 * Checks if two values are equal, including support for `Date`, `RegExp`, and deep object comparison.
3 *
4 * @param {unknown} a - The first value to compare.
5 * @param {unknown} b - The second value to compare.
6 * @returns {boolean} `true` if the values are equal, otherwise `false`.
7 *
8 * @example
9 * isEqual(1, 1); // true
10 * isEqual({ a: 1 }, { a: 1 }); // true
11 * isEqual(/abc/g, /abc/g); // true
12 * isEqual(new Date('2020-01-01'), new Date('2020-01-01')); // true
13 * isEqual([1, 2, 3], [1, 2, 3]); // true
14 */
15declare function isEqual(a: any, b: any): boolean;
16
17export { isEqual };
Note: See TracBrowser for help on using the repository browser.