@esfx/equatable-shim Package
Provides a global shim that adds @esfx/equatable functionality to various ECMAScript built-ins.
Installation
npm i @esfx/equatable-shim
Usage
The global shim adds a default implementation of Equatable to Object.prototype and default implementations of
Comparable to String.prototype, Number.prototype, Boolean.prototype, and BigInt.prototype.
To install the global shim, import @esfx/equatable-shim:
import "@esfx/equatable-shim"; // triggers global-scope side effects
import { Equatable } from "@esfx/equatable";
123[Equatable.hash]() // 123