mergeMaps
Takes a list(array) of maps and merges them into a singular branching model
Arguments
Name
Type
Description
listOfMaps
Map[]
The array of maps we wish to merge
Returns
Type
Description
Map
A new Map of all the given array values
Usage
const foo = new Map([['a', 'hello']])
const bar = new Map([['b', 'goodbye']])
mergeMaps([foo, bar])
// => Map { 'a' => 'hello' 'b' => 'goodbye' }
Last updated
Was this helpful?