es6set-operations
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -5,3 +5,3 @@ var Set = require('es6-set'); | ||
function intersection(set, other) { | ||
return new Set(other.toArray().filter(function(value) { | ||
return new Set(toArray(other).filter(function(value) { | ||
return set.has(value); | ||
@@ -14,3 +14,3 @@ })); | ||
function difference(set, other) { | ||
return new Set(other.toArray().filter(function(value) { | ||
return new Set(toArray(other).filter(function(value) { | ||
return !set.has(value); | ||
@@ -17,0 +17,0 @@ })); |
{ | ||
"name": "es6set-operations", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Set operations for ES6 sets", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2224