dotted-object
A small, single-feature module to use a string with a dot notation to extract values from an object.
npm i dotted-object [--save]
const dotted = const obj = data: geo: lat: 44335 lon: 52983 const value = /* To use a custom divider, use the thrid argument: const value = dotted('data:geo:lat', obj, ':') */ console // => Outputs 44.335
TypeScript type definition included!
License
Copyright 2017 Michiel van der Velde.
This software is licensed under the MIT License.