How to destructure with default value in JavaScript

Syntax
Last updated Dec 23, 2017
const { id, active = true } = {
  id: 10,
  name: "John"
};

console.log(id, active);
10
true