How to use the @esfx/equatable.Comparable.compareTo function in @esfx/equatable

To help you get started, we’ve selected a few @esfx/equatable examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github esfx / esfx / packages / equatable-shim / src / __tests__ / global.ts View on Github external
it("Comparable.compareTo", () => {
            expect("a"[Comparable.compareTo]("a")).toBe(0);
            expect("a"[Comparable.compareTo]("b")).toBeLessThan(0);
            expect("b"[Comparable.compareTo]("a")).toBeGreaterThan(0);
        });
    });
github esfx / esfx / packages / equatable-shim / src / __tests__ / global.ts View on Github external
it("Comparable.compareTo", () => {
            expect("a"[Comparable.compareTo]("a")).toBe(0);
            expect("a"[Comparable.compareTo]("b")).toBeLessThan(0);
            expect("b"[Comparable.compareTo]("a")).toBeGreaterThan(0);
        });
    });

@esfx/equatable

A low-level API for defining equality.

Apache-2.0
Latest version published 2 years ago

Package Health Score

42 / 100
Full package analysis

Similar packages