@ch1/utility
TypeScript icon, indicating that this package has built-in type declarations

0.8.0 • Public • Published

CH1 Utility

CircleCI

This is not well maintained

Installation

yarn add @ch1/utility

Interfaces

  • Dictionary<T>

Functions

  • arrToObj
  • createBetween (random: () => number) => () => number
  • deepFreeze
  • findCaseInsensitivePropInObj
  • hasProp
  • isBoolean
  • identity
  • isFunction
  • isNaN
  • isNumber
  • isNull
  • isObject
  • isString
  • isUndefined
  • noop
  • partial
  • pluck
  • objEach
  • objFilter
  • objReduce
  • toGtZeroIntMax
  • toInt
  • toIntArray
  • toIntArrayMax
  • toIntArrayMin
  • toIntBetweenOptional
  • toIntMax
  • toIntMin
  • toString
  • toStringArray
  • toStringArrayMax
  • toStringMax
  • unzip
  • zip
const between = createBetween(Math.random.bind(Math));
const randomNumber = between(0, 100); // inclusive due to Math.random

License

LGPL

Readme

Keywords

Package Sidebar

Install

npm i @ch1/utility

Weekly Downloads

6

Version

0.8.0

License

LGPL-3.0

Unpacked Size

84.1 kB

Total Files

23

Last publish

Collaborators

  • bennett000