Package Exports
- jaunt
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (jaunt) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Jaunt.js

Access the value in an object or array using to a dot-delimited string.
var obj = {
foo: {
bar: ['Hello', 'World']
}
};
jaunt(obj, 'foo.bar.0'); //=> "Hello"
jaunt(obj, ['foo', 'bar', 1]); //=> "World"
jaunt(obj, 'invalid'); //=> undefined
API
jaunt(obj, path)
Returns the value in obj
corresponding to path
. Returns undefined
if path
does not exist.
obj
is anobject
or anarray
.path
is a dot-delimitedstring
of keys, or anarray
of keys.
Installation
Install via npm:
$ npm i --save jaunt