- Go backend (server/)
- Frontend (web/, server/static/)
- Database and deployment files
- Scripts and docs
Co-Authored-By: 狸花猫/Claude-Qwen3.6-Plus 🐾
12 lines
294 B
TypeScript
12 lines
294 B
TypeScript
/**
|
|
* Flattens `array` a single level deep.
|
|
*
|
|
* @param {Array} arr The array to flatten.
|
|
* @return {Array} Returns the new flattened array.
|
|
* @example
|
|
*
|
|
* flatten([1, [2, [3, [4]], 5]]); // => [1, 2, [3, [4]], 5]
|
|
*/
|
|
declare const flatten: <T>(arr: T[]) => T[];
|
|
export default flatten;
|