Given 2 maps, return boolean if they have the same key/value pairs.

// input:
const m1 = new Map([['apples', 1], ['bananas', 2], ['carrots', 3]]), m2 = new Map([['apples', 1], ['bananas', 2], ['carrots', 3]])

// output:
true

Test Cases

Loading...
/* output */

Next