1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | 1 58 1 145 145 1 153 1 | /* vim: set et sw=2 ts=2: */ 'use strict'; function Set() { this.__xs = {}; } Set.prototype.add = function add(value) { this.__xs[value] = true; return this; }; Set.prototype.has = function has(value) { return this.__xs[value] === true; }; module.exports = Set; |