MCPcopy Create free account
hub / github.com/EricSimons/ionic-course / HashMap

Function HashMap

code/songhop/www/lib/angular/angular.js:3309–3317  ·  view source on GitHub ↗

* HashMap which can use objects as keys

(array, isolatedUid)

Source from the content-addressed store, hash-verified

3307 * HashMap which can use objects as keys
3308 */
3309function HashMap(array, isolatedUid) {
3310 if (isolatedUid) {
3311 var uid = 0;
3312 this.nextUid = function() {
3313 return ++uid;
3314 };
3315 }
3316 forEach(array, this.put, this);
3317}
3318HashMap.prototype = {
3319 /**
3320 * Store key value pair

Callers

nothing calls this directly

Calls 1

forEachFunction · 0.70

Tested by

no test coverage detected