var rect = {}; var {topLeft: [x1, y1], bottomRight: [x2, y2] } = rect;