1.2.3 • Published 6 years ago

tim_util v1.2.3

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

Travis (.com) Coveralls github GitHub last commit npm GitHub npm bundle size

Util

Util is a lightweight libary of simple, commonly useful utility function. Written in typescript

Installation

npm i tim_util

Usage

Functions are organised so that you can pick and choose as much...

import u from 'tim_util' // everything

or as little as you need...

import { num } from 'tim_util' // number/math functions only

keeping your project small...

import { makeSureItsAnArray } from 'tim_util' // just the function you need

Functions are all available at root level when importing all of tim_util.

arr

  • clean
  • every
  • next
  • previous
  • unique

async

  • delay
  • filter
  • forEach
  • map

fn

  • callOrReturn
  • curry
  • maybeCall

is

  • isArray
  • isArrayLike
  • isBetween
  • isBool
  • isFunction
  • isInstanceOf
  • isInteger
  • isIterable
  • isLength
  • isMap
  • isNull
  • isNumber
  • isNumberish
  • isObject
  • isRealNaN
  • isScalar
  • isString
  • isType
  • isUndefined

logic

  • and
  • or
  • xor

num

  • clamp
  • randomInt
  • randomNumber
  • scale

obj

  • clone
  • decycle
  • equal
  • get
  • set
  • sizeOf
  • undecycle

str

  • insert
  • makeID
  • randomColour
  • remove

util

  • makeSureItsAnArray
  • times
1.2.3

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago

0.2.1

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago