Files
games/packages/shared/utils.ts

4 lines
132 B
TypeScript

import hash, { NotUndefined } from "object-hash";
export const heq = (a: NotUndefined) => (b: NotUndefined) => hash(a) == hash(b);