MCPcopy Index your code
hub / github.com/loopbackio/loopback-next / setter

Function setter

packages/context/src/value-promise.ts:102–108  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

100 let asyncResolvers: PromiseLike<void>[] | undefined = undefined;
101
102 const setter = (key: string) => (val: V) => {
103 if (val !== undefined) {
104 // Only set the value if it's not undefined so that the default value
105 // for a key will be honored
106 result[key] = val;
107 }
108 };
109
110 for (const key in map) {
111 const valueOrPromise = resolver(map[key], key, map);

Callers 2

resolveMapFunction · 0.70
resolveListFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected