To create a shallow copy of a `Set`, pass the original `Set` as a parameter to the `Set()` constructor, e.g. `const cloned = new Set(oldSet)`.
確定! 回上一頁