장재영
장재영
Then, How can upload files to server when I use [insertFiles] button?
After es2019, you can use [flatMap](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/flatMap). Here is my [ts-playground](https://www.typescriptlang.org/play?target=99#code/MYewdgzgLgBAtgTwIICcUwLwwNoHIAWApgDbEi4A0MYArqVbgO4grEAmlMNYbhAZgEswhNgF0A3AChQkWIOJRCKEZnjI0AOj7EAhlACyOgA4AKEwA8AlAAKMAPhjmYAfkcwAXDlGXxQA). ```ts const myArr = ['hello', null, 'world', undefined]; const filteredArr = myArr.flatMap((x) => x ? x : []); ``` Above...