Skip to main content
Go to Latest
File
export function mergeObject( x: Record<string, any[]>, y: Record<string, any[]>,) { for (const [key, value] of Object.entries(y)) { if (!x[key]) { x[key] = []; } x[key] = [...x[key], ...value]; } return x;}export function intersect(a: string[], b: string[]) { for (const element of a) { if (b.includes(element)) { return true; } } return false;}