Skip to content

Latest commit

 

History

History
62 lines (54 loc) · 1.93 KB

README.md

File metadata and controls

62 lines (54 loc) · 1.93 KB

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