Source code
Revision control
Copy as Markdown
Other Tools
// Set.prototype.add should be chainable
var s = new Set();
assertEq(s.add('BAR'), s);
var b = s.add('foo').has('foo');
assertEq(b, true);
// Set.prototype.add should be chainable
var s = new Set();
assertEq(s.add('BAR'), s);
var b = s.add('foo').has('foo');
assertEq(b, true);