Map is a new object in ECMA6, if assign multiple value to the same key, it will overwrite all previous values. For example,
'use strict';
var m = new Map();
m.set(['aaron', 100]);
m.set(['aaron', 100], 1);
m.set(['aaron', 100], 10);
m.set(['aaron', 100], 100);
m.set(['aaron', 100], 1000);
m.set(['aaron', 100], 10000);
console.log(m.get(['aaron', 100]));
It will show a weird output(undefined), why? Many thanks.