2018-01-09 15:36:42 +01:00

3 lines
71 B
JavaScript

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