MCPcopy Index your code
hub / github.com/nodejs/node / list_to_map

Function list_to_map

deps/inspector_protocol/check_protocol_compatibility.py:38–43  ·  view source on GitHub ↗
(items, key)

Source from the content-addressed store, hash-verified

36
37
38def list_to_map(items, key):
39 result = {}
40 for item in items:
41 if "experimental" not in item and "hidden" not in item:
42 result[item[key]] = item
43 return result
44
45
46def named_list_to_map(container, name, key):

Callers 2

named_list_to_mapFunction · 0.70
compare_schemasFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected