MCPcopy Create free account
hub / github.com/CommE2E/comm / values

Function values

lib/utils/objects.js:41–45  ·  view source on GitHub ↗
(map: ObjectMap<K, T>)

Source from the content-addressed store, hash-verified

39}
40
41function values<K, T>(map: ObjectMap<K, T>): T[] {
42 return Object.values
43 ? Object.values(map)
44 : Object.keys(map).map((key: K): T => map[key]);
45}
46
47function entries<K: string, T>(map: ObjectMap<K, T>): [K, T][] {
48 return Object.entries(map);

Callers 15

createEntryFunction · 0.90
createAccountFunction · 0.90
urls.jsFile · 0.90
deleteMessageResponderFunction · 0.90
fetchLoginResponseFunction · 0.90
user-responders.jsFile · 0.90
validateRolePermissionsFunction · 0.90

Calls 2

valuesMethod · 0.65
keysMethod · 0.65

Tested by

no test coverage detected