Destructuring in Javascript
Destructuring applies to arrays and objects. It consists in breaking down complex structures (array, object) to extract the values we are interested in. Those manipulations make the code simpler and easier to read. let [ valeur1, valeur2 ] = tableau let { valeur1, valeur2 } = objet The syntax is different whether it is an array...
Continuer à lire →