Destructuring in JavaScript: Pull Out What You Need, Leave the Rest
Every time you fetch user data from an API, you get back an object full of properties. But you only need three of them. So you write:
const name = user.name;
const email = user.email;
const count
orion-blogs.hashnode.dev7 min read