Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript object destructuring

// In this syntax:

let { property1: variable1, property2: variable2 } = object;

// The identifier before the colon (:) is the property of the object and the identifier after the colon is the variable.
Source by www.javascripttutorial.net #
 
PREVIOUS NEXT
Tagged: #javascript #object #destructuring
ADD COMMENT
Topic
Name
1+3 =