1.2.3 • Published 6 years ago
tim_util v1.2.3
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