What is destructuring aliases

Posted by Jennifer | Updated on

Sometimes you would like to have a destructured variable with a different name than the property name. In that case, you’ll use a : newName to specify a name for the variable. This process is called destructuring aliases.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers