bp-ts-utils

    2.4.2 • Public • Published

    Maintainability ts-utils-ci bp-ts-utils

    ts-utils

    A library of utilities to be used with TypeScript. The already established utility libraries out there for both TypeScript and JavaScript have inspired me to write my own. This is for fun and to learn. Anyone is welcome to try it out.

    Installation

    Using npm:

    $ npm install --save bp-ts-utils

    Library

    Array Global Augmentation

    first(): T
    isEmpty(): boolean
    isIdenticalTo(array: T[]): boolean
    last(): T
    longerThan(array: T[]): boolean
    shorterThan(array: T[]): boolean
    clone(array: unknown[]): unknown[]
    cloneWithValidation(array: unknown[]): unknown[]
    

    Boolean Global Augmentation

    not(): boolean
    

    Clone

    clone(argument: unknown | unknown[]): unknown | unknown[]
    cloneWithValidation(argument: unknown | unknown[]): unknown | unknown[]
    

    Object

    areIdentical<T>(first: T, second: T): boolean
    isUndefined(argument: unknown): boolean
    isNull(argument: unknown): boolean
    isNullOrUndefined(argument: unknown): boolean
    isANumber(argument: unknown): boolean
    areIdenticalArrays(first: T[], second: T[]): boolean
    

    Releasing to NPM Registry

    Commands

    • lint: npm run lint
    • test: npm test
    • build: npm run build

    Links

    Install

    npm i bp-ts-utils

    DownloadsWeekly Downloads

    45

    Version

    2.4.2

    License

    Apache-2.0

    Unpacked Size

    3.42 kB

    Total Files

    2

    Last publish

    Collaborators

    • banjo4444