vanillas

Dependency-free, low-level JavaScript function helpers

Usage no npm install needed!

<script type="module">
  import vanillas from 'https://cdn.skypack.dev/vanillas';
</script>

README

Vanillas

Vanillas JS

JavaScript utility functions. Comparable to Lodash or Ramda, but faster. In some cases it even outperforms native implementations (or leverages native implementations that are messy to type out).

Docs

View the full docs. These are always in-sync with the JsDoc code annotations.

Installation

npm install vanillas

Benchmarks

Run any of the files in the benchmark/test/ directory.

Examples (run one or more benchmark tests, space-delimited):

npm run benchmark compose
npm run benchmark propAt
npm run benchmark mapObject
npm run benchmark compose mapObject propAt

Or you can run all of them (grab a cup of coffee while you wait):

npm run benchmark

View Current Benchmarks