Skip to content
/ ts-utils Public

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.

Notifications You must be signed in to change notification settings

noydb/ts-utils

Repository files navigation

Maintainability ts-utils-ci npm version

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

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[]
not(): boolean
clone(argument: unknown | unknown[]): unknown | unknown[]
cloneWithValidation(argument: unknown | unknown[]): unknown | unknown[]
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

About

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.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published