This commit is contained in:
nik
2025-10-03 22:27:28 +03:00
parent 829fad0e17
commit 871cf7e792
16520 changed files with 2967597 additions and 3 deletions

View File

@@ -0,0 +1,14 @@
/**
* Returns an array of distinct values. Order is not guaranteed.
* @param values - The values to filter. Should be JSON-serializable.
* @return - An array of distinct values.
*/
export declare function distinctValues<T>(values: T[]): T[];
/**
* Returns a stringified version of the object with keys sorted. This is required to
* ensure that the stringified version of an object is deterministic independent of the
* order of keys.
* @param obj
* @return {string}
*/
export declare function deterministicJSONStringify(obj: unknown): string;