@esfx/equatable-shim
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

@esfx/equatable-shim

The @esfx/equatable-shim package provides a global shim that adds @esfx/equatable functionality to various ECMAScript built-ins.

Overview

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

Readme

Keywords

none

Package Sidebar

Install

npm i @esfx/equatable-shim

Weekly Downloads

1

Version

1.0.2

License

Apache-2.0

Unpacked Size

30.4 kB

Total Files

8

Last publish

Collaborators

  • rbuckton