If you want to mimic that in JS, you would create an immutable array-like structure with a library like Immutable / Immer. Then you can 'push', ...
確定! 回上一頁