Skip to content

How to use collections in Angular? #240

@audetto

Description

@audetto

Probably doing something wrong here

npm install collections
npm install @types/collections

then I tried to import in various ways

import * as collections from 'collections/sorted-set';
or
import * as collections from 'collections';

but the best I get is a runtime error

ReferenceError: global is not defined

at

generic-collection.js:8

How do I do it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions