Object Destructuring in ES6
Object Destructuring
Object destructuring allows JavaScript expression to make it possible to unpack properties into distinct variables. Object Destructuring actually means breaking down objects elements into individual elements.
Syntax:-
let my_object = {key_1: value_1, key_2: value_2};
let {key1, key2} = my_object;
document.write("First Item: " + key1 + ", Second Item: " + key2 );