MCPcopy Create free account
hub / github.com/angular-ui/ui-grid / HashMap

Function HashMap

lib/test/angular/1.5.0/angular.js:3702–3710  ·  view source on GitHub ↗

* HashMap which can use objects as keys

(array, isolatedUid)

Source from the content-addressed store, hash-verified

3700 * HashMap which can use objects as keys
3701 */
3702function HashMap(array, isolatedUid) {
3703 if (isolatedUid) {
3704 var uid = 0;
3705 this.nextUid = function() {
3706 return ++uid;
3707 };
3708 }
3709 forEach(array, this.put, this);
3710}
3711HashMap.prototype = {
3712 /**
3713 * Store key value pair

Callers

nothing calls this directly

Calls 1

forEachFunction · 0.70

Tested by

no test coverage detected