MCPcopy
hub / github.com/palantir/plottable / get

Method get

src/utils/map.ts:43–54  ·  view source on GitHub ↗
(key: K)

Source from the content-addressed store, hash-verified

41 }
42
43 public get(key: K) {
44 if (this._es6Map != null) {
45 return <V>this._es6Map.get(key);
46 }
47
48 for (let i = 0; i < this._keyValuePairs.length; i++) {
49 if (this._keyValuePairs[i].key === key) {
50 return this._keyValuePairs[i].value;
51 }
52 }
53 return undefined;
54 }
55
56 public has(key: K) {
57 if (this._es6Map != null) {

Callers 15

stackedExtentsFunction · 0.95
_drawAnnotationsMethod · 0.95
mapTests.tsFile · 0.45
minDomainExtentMethod · 0.45
maxDomainExtentMethod · 0.45
minDomainValueMethod · 0.45
maxDomainValueMethod · 0.45
stackFunction · 0.45
stackedExtentFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected