MCPcopy
hub / github.com/visgl/deck.gl / getKeys

Function getKeys

modules/json/src/utils/get.ts:39–51  ·  view source on GitHub ↗
(compositeKey: string)

Source from the content-addressed store, hash-verified

37// - 'feature.geometry.type' => ['feature', 'geometry', 'type']
38// - 'feature' => ['feature']
39function getKeys(compositeKey: string): string[] {
40 if (typeof compositeKey === 'string') {
41 // else assume string and split around dots
42 let keyList = keyMap[compositeKey];
43 if (!keyList) {
44 keyList = compositeKey.split('.');
45 keyMap[compositeKey] = keyList;
46 }
47 return keyList;
48 }
49 // Wrap in array if needed
50 return Array.isArray(compositeKey) ? compositeKey : [compositeKey];
51}

Callers 1

getFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…