Preview:```ts
type Arr = readonly any[]
function concat<T extends Arr, U extends Arr>(
arr1: T,
arr2: U
): [...T, ...U] {
return [...arr1, ...arr2]
}
const a = concat(
[1, 2, 3] as const,
["a", "b", "c"] as const
)
// ^?```
You can choose specific lines to embed by selecting them before copying the link.