dot-companion

Extract and set values to object with dot-notation

Usage no npm install needed!

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

README

dot-companion

Simple module to get and set values using dot-notation

getVal (obj, notation)

  • retrieves the value of this notation from this object

setVal (obj, notation, val)

  • sets the value for this notation on this object