Source code
Revision control
Copy as Markdown
Other Tools
// Set.prototype.add should be chainable
var m = new Map();
assertEq(m.set('oof', 'RAB'), m);
var a = m.set('foo', 'BAR').get('foo');
assertEq(a, 'BAR');
// Set.prototype.add should be chainable
var m = new Map();
assertEq(m.set('oof', 'RAB'), m);
var a = m.set('foo', 'BAR').get('foo');
assertEq(a, 'BAR');