Dictionaries.merge()

Merge two dictionaries together and return the result (a new dictionary)

Usage

Hover over inputs/exits for more info.

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


// Merge two dictionaries together and return the result (a new dictionary)

Dictionaries.merge({

primary: {},

secondary: {},

}).execSync();

Inputs

primary required

The dictionary whose keys will take precedence.

{}
secondary required

The dictionary whose keys may be overridden by `primary`.

{}

Exits

error

An unexpected error occurred.

success

OK.

(varies based on provided inputs)