Comparing version 2.0.2 to 2.0.3
{ | ||
"name": "hashmap", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "HashMap Class for JavaScript", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/flesler/hashmap", |
# Changelog | ||
## 2.0.3 | ||
- forEach method accepts a context as 2nd argument (thanks mvayngrib) | ||
## 2.0.2 | ||
@@ -17,6 +20,6 @@ - Make collisions rarer | ||
## 1.2.0 | ||
- Added search() method, thanks rafalwrzeszcz | ||
- Added search() method, (thanks rafalwrzeszcz) | ||
## 1.1.0 | ||
- AMD support, thanks khrome | ||
- AMD support, (thanks khrome) | ||
@@ -23,0 +26,0 @@ ## 1.0.1 |
/** | ||
* HashMap - HashMap Class for JavaScript | ||
* @author Ariel Flesler <aflesler@gmail.com> | ||
* @version 2.0.2 | ||
* @version 2.0.3 | ||
* Homepage: https://github.com/flesler/hashmap | ||
@@ -141,6 +141,6 @@ */ | ||
forEach:function(func) { | ||
forEach:function(func, ctx) { | ||
for (var key in this._data) { | ||
var data = this._data[key]; | ||
func.call(this, data[1], data[0]); | ||
func.call(ctx || this, data[1], data[0]); | ||
} | ||
@@ -147,0 +147,0 @@ } |
{ | ||
"name": "hashmap", | ||
"author": "Ariel Flesler <aflesler@gmail.com>", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "HashMap Class for JavaScript", | ||
@@ -6,0 +6,0 @@ "keywords": ["hashmap", "map", "object", "array", "associative", "javascript", "nodejs", "node", "browser"], |
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
11547