unordered-set
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -14,3 +14,3 @@ exports.add = add | ||
function has (list, item) { | ||
return list[item._index] === item | ||
return item._index < list.length && list[item._index] === item | ||
} | ||
@@ -17,0 +17,0 @@ |
{ | ||
"name": "unordered-set", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "A couple of functions that make it easy to maintain an unordered set as an array in an efficient way", | ||
@@ -5,0 +5,0 @@ "main": "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
5726
6