// mergeArrays(people,people2,key); export function mergeArrays(arr1: [], arr2: [], key: string) { const arr = [...arr1, ...arr2]; return arr }