MCPcopy Index your code
hub / github.com/simstudioai/sim / mergeUniqueKeys

Function mergeUniqueKeys

apps/sim/lib/execution/payloads/access-keys.ts:9–20  ·  view source on GitHub ↗
(target: string[], source: readonly string[])

Source from the content-addressed store, hash-verified

7}
8
9export function mergeUniqueKeys(target: string[], source: readonly string[]): void {
10 if (source.length === 0) {
11 return
12 }
13 const existingKeys = new Set(target)
14 for (const key of source) {
15 if (!existingKeys.has(key)) {
16 existingKeys.add(key)
17 target.push(key)
18 }
19 }
20}
21
22export function mergeLargeValueKeys(context: ExactAccessKeyContext, keys: readonly string[]): void {
23 if (keys.length === 0) {

Callers 2

mergeLargeValueKeysFunction · 0.85
mergeFileKeysFunction · 0.85

Calls 2

addMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected