A practical guide to object destructuring in JavaScript