MCPcopy Create free account
hub / github.com/CoderLine/alphaTab / getValue

Method getValue

packages/alphatab/src/io/JsonHelper.ts:58–67  ·  view source on GitHub ↗

* @target web * @partial

(s: unknown, key: string)

Source from the content-addressed store, hash-verified

56 * @partial
57 */
58 public static getValue(s: unknown, key: string): unknown {
59 if (s instanceof Map) {
60 return (s as Map<string, unknown>).get(key);
61 }
62
63 if (typeof s === 'object') {
64 return (s as any)[key];
65 }
66 return null;
67 }
68}

Callers 3

_readTrackInstrumentMethod · 0.45
applyBeatPropertyMethod · 0.45

Calls 1

getMethod · 0.65

Tested by

no test coverage detected