Use the spread operator to copy a flat object. ... Flatten a Nested Array in JavaScript with Array.prototype.flat.
確定! 回上一頁