@tspro/ts-utils-lib
    Preparing search index...

    @tspro/ts-utils-lib

    TS Utils Lib

    A small collection of TypeScript functions, containers, modules, etc. used in my personal projects.

    Repository | Package | Homepage

    npm i @tspro/ts-utils-lib

    Made major update because

    • Wanted to remove deprecated renamed or obsoloted stuff.
    • Wanted to upgrade Assert and Guard namespaces.
    • Version 1 had already grown long.

    Deprecations and replacements

    • Vec2 -> Vec
    • Map1 -> UniMap
    • Map2 -> BiMap
    • Map3 -> TriMap
    • Set1 -> ValueSet
    • DeepSet -> ValueSet.createDeep()
    • DivRect -> AnchoredRect
    • Utils.Is.isX... -> Guard.isX...

    Additions

    • Rect
    • Guard.is* - intriduced more guards.
    • Assert.is* - introduced more assertions.
    • Utils.Str.stringify(val) - generic format-anything.

    There are some other changes (e.g. Guard.isOddNumber() -> Guard.isOdd() and so on), but most the stuff is compatible with 1.x.