set-component
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -258,3 +258,4 @@ /** | ||
Set.prototype.values = function(){ | ||
Set.prototype.values = | ||
Set.prototype.toJSON = function(){ | ||
return this.vals; | ||
@@ -346,3 +347,14 @@ }; | ||
/** | ||
* Check if the set is empty. | ||
* | ||
* @return {Boolean} | ||
* @api public | ||
*/ | ||
Set.prototype.isEmpty = function(){ | ||
return 0 == this.vals.length; | ||
}; | ||
}); | ||
@@ -349,0 +361,0 @@ require.alias("component-indexof/index.js", "set/deps/indexof/index.js"); |
{ | ||
"name": "set", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "set container", | ||
@@ -5,0 +5,0 @@ "keywords": ["set"], |
0.0.3 / 2012-09-18 | ||
================== | ||
* add .toJSON() | ||
* add .isEmpty() | ||
0.0.2 / 2012-09-18 | ||
@@ -3,0 +9,0 @@ ================== |
14
index.js
@@ -62,3 +62,4 @@ | ||
Set.prototype.values = function(){ | ||
Set.prototype.values = | ||
Set.prototype.toJSON = function(){ | ||
return this.vals; | ||
@@ -150,1 +151,12 @@ }; | ||
/** | ||
* Check if the set is empty. | ||
* | ||
* @return {Boolean} | ||
* @api public | ||
*/ | ||
Set.prototype.isEmpty = function(){ | ||
return 0 == this.vals.length; | ||
}; | ||
{ | ||
"name": "set-component", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Set container", | ||
@@ -5,0 +5,0 @@ "keywords": ["set"], |
@@ -54,2 +54,4 @@ | ||
Aliased as `.toJSON()`. | ||
### Set#size() | ||
@@ -63,2 +65,6 @@ | ||
### Set#isEmpty() | ||
Check if the set is empty. | ||
### Set#union(set) | ||
@@ -65,0 +71,0 @@ |
11529
478
78