UNPKG

geography-markup-language

Version:
8 lines (7 loc) 191 B
// reorder from [y, x, ...] to [x, y, ...] export default function reorder(point) { const y = point[0]; const x = point[1]; const rest = point.slice(2); return [x, y].concat(rest); }