TC39 proposal: Record and Tuples, the real immutable data structures in JavaScript.

const record = #{ prop: 1}; const tuple = #[1, 2, 3]
Records and tuples

One of the misleading use cases for beginners in JavaScript is to create constant arrays and objects. With the introductions of ES6, we got two new declarators: let, for mutable variables, and const, for constants. Many beginners believe that this will make their objects and array immutable, to discover later that they are not. The object or array…

Software engineer at Booking.com. I write about tech, mostly *nix, JS & Go. Also life stuff, learning languages and hobbies. https://threkk.com

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How to Deploy a Parcel Build to Heroku

//platform.twitter.com/widgets.js from Twitter https://twitter.com/krushfitnessca

Deploy a Vue app with a Nodejs backend to Heroku

Everything to know about React lazy and suspense

Soon size look easy fast interest.

moveToEnd: Put the value that was thus eliminated into the last position of the array

Build Your Web Development Portfolio || The Yes No API Challenge

How to run GUI apps on WSL and WSL2

Screenshot of Windows 10 app list with XLaunch entry circled in red

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Alberto de Murga

Alberto de Murga

Software engineer at Booking.com. I write about tech, mostly *nix, JS & Go. Also life stuff, learning languages and hobbies. https://threkk.com

More from Medium

Time Travel Debugging in Svelte with DeLorean

A better alternative of `as` in Typescript

ES2021(ES12) ships with below new features

Conditional CSS Class with Surface-UI