yewtillitees

1.6.0 • Public • Published

Yewtillitees

NPM version GitHub license

Helper functions I need often.

Installation

npm install yewtillitees

Usage

import { normalize } from 'yewtillitees'

const normalizer = normalize(10, 20)
normalizer(15) // 0.5

Helpers

Array

  • findIndexes
  • pickRandom
  • shuffle

Async

  • sleep

DOM

  • createTemplateInstance
  • measureDocumentHeight
  • measureScrollbarSize
  • onIdle
  • onIdleAfterLoad
  • onDomReady
  • onWindowLoad

Number

  • clamp
  • normalize
  • normalizeBetweenRanges
  • random
  • randomInteger

Object

  • map

String

  • camelCase
  • kebabCase

License

MIT

Package Sidebar

Install

npm i yewtillitees

Weekly Downloads

7

Version

1.6.0

License

MIT

Unpacked Size

53.2 kB

Total Files

32

Last publish

Collaborators

  • daun