Tag: flattening
Handling large nested arrays in TypeScript and ensuring type safety