dimanche 22 mars 2020

Does destructuring in ES6 JavaScript reduce memory allocation?

since we skip the places where we don't want to access the element in array destructuring, does that count as less memory allocation? Or skipping a place automatically allocates memory. Example let [a,,b]. In the above example, are three places stored in the memory?




Aucun commentaire:

Enregistrer un commentaire