dotpath-parser

Splits a dotted path string into an Array of keys.

Usage no npm install needed!

<script type="module">
  import dotpathParser from 'https://cdn.skypack.dev/dotpath-parser';
</script>

README

dotpath-parser

Build Status

Splits a dotted path string into an Array of keys where string keys represent Object properties while integer keys represent Array indices.

Usage

dotpath('this.is.0.an.1.example');
// => [ 'this', 'is', 0, 'an', 1, 'example' ]