How to use @esfx/collection-core - 10 common examples

To help you get started, we’ve selected a few @esfx/collection-core 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 / collection-core-shim / src / __tests__ / global.ts View on Github external
it("hasInstance", () => {
            expect(ReadonlyCollection.hasInstance([])).toBe(true);
        });
        it("size", () => {
github esfx / esfx / packages / collection-core-shim / src / __tests__ / global.ts View on Github external
it("hasInstance", () => {
                expect(ReadonlyCollection.hasInstance(new TypedArray())).toBe(true);
            });
            it("size", () => {
github esfx / esfx / packages / collection-core-shim / src / __tests__ / global.ts View on Github external
it("hasInstance", () => {
            expect(ReadonlyCollection.hasInstance(new Set())).toBe(true);
        });
        it("size", () => {
github esfx / esfx / packages / collection-core-shim / src / __tests__ / global.ts View on Github external
it("add", () => {
            const obj = new Set(["a"]);
            obj[Collection.add]("b");
            expect([...obj]).toEqual(["a", "b"]);
        });
        it("delete", () => {
github esfx / esfx / packages / collection-core-shim / src / __tests__ / global.ts View on Github external
it("add", () => {
            const obj = ["a"];
            obj[Collection.add]("b");
            expect(obj).toEqual(["a", "b"]);
        });
        it("delete", () => {
github esfx / esfx / packages / collection-core-shim / src / __tests__ / global.ts View on Github external
it("clear", () => {
            const obj = ["a", "b"];
            obj[Collection.clear]();
            expect(obj).toEqual([]);
        });
    });
github esfx / esfx / packages / collection-core-shim / src / __tests__ / global.ts View on Github external
it("clear", () => {
            const obj = new Set(["a", "b"]);
            obj[Collection.clear]();
            expect([...obj]).toEqual([]);
        });
    });
github esfx / esfx / packages / collection-core-shim / src / __tests__ / global.ts View on Github external
it("delete", () => {
            const obj = new Set(["a", "b"]);
            expect(obj[Collection.delete]("b")).toBe(true);
            expect([...obj]).toEqual(["a"]);
        });
        it("clear", () => {
github esfx / esfx / packages / collection-core-shim / src / __tests__ / global.ts View on Github external
it("delete", () => {
            const obj = ["a", "b"];
            expect(obj[Collection.delete]("b")).toBe(true);
            expect(obj).toEqual(["a"]);
        });
        it("clear", () => {
github esfx / esfx / packages / collection-core-shim / src / __tests__ / global.ts View on Github external
it("hasInstance", () => {
            expect(Collection.hasInstance([])).toBe(true);
        });
        it("add", () => {