dot-helpers

Object mapping helpers

Usage no npm install needed!

<script type="module">
  import dotHelpers from 'https://cdn.skypack.dev/dot-helpers';
</script>

README

⚈ Dot

A set of helper functions for parsing and mutating objects in dot notation. Inspired by dot-object but with emphasis on flattening and mapping arrays.

Documentation on the way. For now, please consult the unit tests for examples or read the use cases below.

⛏️ Extract

A decorator function over lodash's get method

for reading array values without a specified index.

🐙 Modify

An object of mutators for modifying the values on matching keys.