src/language-js/print/assignment.js/isComplexDestructuring
function isComplexDestructuring(node) {
  if (isAssignmentOrVariableDeclarator(node)) {
    const leftNode = node.left || node.id;
    return (
      leftNode.type === "ObjectPattern" &&
      leftNode.properties.length > 2 &&
      leftNode.properties.some(
        (property) =>
          isObjectProperty(property) &&
          (!property.shorthand ||
            (property.value && property.value.type === "AssignmentPattern"))
      )
    );
  }
  return false;
}