DEV Community

Discussion on: New JavaScript Features ECMAScript 2021 (with examples)

Collapse
 
kerryboyko profile image
Kerry Boyko

No mention of Tuples and Records? github.com/tc39/proposal-record-tuple

const tuple = #['string', Math.PI];
const record = #{foo: 'bar'};

Collapse
 
brayanarrieta profile image
Brayan Arrieta

I will check thx 👌

Collapse
 
andreasanta profile image
Andrea S.

They're just immutable versions of arrays and objects, right?