Files
2026-08-07 21:39:30 +02:00

6 lines
284 B
TypeScript

/**
* Fast shallow compare for plain objects.
* Returns `true` when both objects have the same own enumerable keys and each value is equal
* according to `Object.is()`.
*/
export default function fastObjectShallowCompare<T extends Record<string, any> | null>(a: T, b: T): boolean;