MCPcopy
hub / github.com/angular-ui/ui-router / HashMap

Function HashMap

test/angular/1.3/angular.js:3358–3366  ·  view source on GitHub ↗

* HashMap which can use objects as keys

(array, isolatedUid)

Source from the content-addressed store, hash-verified

3356 * HashMap which can use objects as keys
3357 */
3358function HashMap(array, isolatedUid) {
3359 if (isolatedUid) {
3360 var uid = 0;
3361 this.nextUid = function() {
3362 return ++uid;
3363 };
3364 }
3365 forEach(array, this.put, this);
3366}
3367HashMap.prototype = {
3368 /**
3369 * Store key value pair

Callers

nothing calls this directly

Calls 1

forEachFunction · 0.70

Tested by

no test coverage detected