Dictionaries.dot()

Get the value associated with a particular key in a dictionary.

Usage

Hover over inputs/exits for more info.

var Dictionaries = require('machinepack-dictionaries');


// Get the value associated with a particular key in a dictionary.

Dictionaries.dot({

dictionary: {},

keypath: 'mom.email',

}).execSync();

Inputs

dictionary required

The dictionary to dereference

{}
keypath required

The key to look up (can be nested, e.g. "avatar" or "avatar.sizeInBytes")

'mom.email'

Exits

error

An unexpected error occurred.

noSuchKey

The specified key does not exist.

success

OK.

(varies based on provided inputs)