3 ms·
There's a proposal for immutable records and tuples: https://github.com/tc39/proposal-record-tuple https://github.com/tc39/proposal-record-tuple Theoretically
by richeyryan 5y ago
There's a proposal for immutable records and tuples: https://github.com/tc39/proposal-record-tuple https://github.com/tc39/proposal-record-tuple
Theoretically they would use structural sharing for their implementation which should reduce the overhead of creating a whole new array of objects like that