MCPcopy
hub / github.com/simstudioai/sim / omitKey

Function omitKey

apps/sim/stores/mothership-queue/store.ts:49–53  ·  view source on GitHub ↗
(record: Record<string, V>, key: string)

Source from the content-addressed store, hash-verified

47}
48
49const omitKey = <V>(record: Record<string, V>, key: string): Record<string, V> => {
50 if (!(key in record)) return record
51 const { [key]: _removed, ...rest } = record
52 return rest
53}
54
55const setQueueForChat = (
56 queues: Record<string, QueuedMothershipMessage[]>,

Callers 2

setQueueForChatFunction · 0.85
store.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected