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