1.6.0 • Published 12 months ago

yewtillitees v1.6.0

Weekly downloads
4
License
MIT
Repository
github
Last release
12 months ago

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

1.6.0

12 months ago

1.5.0

1 year ago

1.4.0

1 year ago

1.3.0

1 year ago

1.2.0

2 years ago

1.0.2

2 years ago

1.1.0

4 years ago

1.0.1

4 years ago

0.1.0

4 years ago