how to destructure promise object javascript code example
Example 1: js object destructuring
const { [propName]: identifier } = expression;
Example 2: destructuring Object in JavaScript
let {name, country, job} = {name: "Sarah", country: "Nigeria", job: "Developer"};
console.log(name);//"Sarah"
console.log(country);//"Nigeria"
console.log(job);//Developer"