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

Function HashMap

test/angular/1.4/angular.js:3688–3696  ·  view source on GitHub ↗

* HashMap which can use objects as keys

(array, isolatedUid)

Source from the content-addressed store, hash-verified

3686 * HashMap which can use objects as keys
3687 */
3688function HashMap(array, isolatedUid) {
3689 if (isolatedUid) {
3690 var uid = 0;
3691 this.nextUid = function() {
3692 return ++uid;
3693 };
3694 }
3695 forEach(array, this.put, this);
3696}
3697HashMap.prototype = {
3698 /**
3699 * Store key value pair

Callers

nothing calls this directly

Calls 1

forEachFunction · 0.70

Tested by

no test coverage detected