Merges two maps
Example usage:
import { merge } from "@thalesrc/js-utils/map"; const first = new Map(); first.set("a", 1); const second = new Map(); second.set("b", 2); merge(first, second); // [{key: "a", value: 1}, {key: "b", value: 2}]
First map
Second map
A new merged map
Generated using TypeDoc
Map Merge
Merges two maps
Example usage:
import { merge } from "@thalesrc/js-utils/map"; const first = new Map(); first.set("a", 1); const second = new Map(); second.set("b", 2); merge(first, second); // [{key: "a", value: 1}, {key: "b", value: 2}]