Sometimes when deploy and publishing a project on a hosting, an error may occur:
[vite:esbuild] The service is no longer running: write EPIPE
[vite:esbuild-transpile] The service was stopped: write EPIPE
Sometimes when deploy and publishing a project on a hosting, an error may occur:
[vite:esbuild] The service is no longer running: write EPIPE
[vite:esbuild-transpile] The service was stopped: write EPIPE
| function foo<T>(arr: T[], callback: (el: T, i: number, arr: T[]) => T) | |
| { | |
| return arr.reduce((acc: T[], value, index) => { | |
| const result = callback(value, index, arr) | |
| acc.push(result) | |
| return acc | |
| }, []); | |
| } |