Code coverage report for nodash/lib/Set.js

Statements: 100% (8 / 8)      Branches: 100% (0 / 0)      Functions: 100% (3 / 3)      Lines: 100% (8 / 8)      Ignored: none     

All files » nodash/lib/ » Set.js
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;