Returns the coordinates represented as an array of two numbers.
@returns {Array
List<num> toArray() => jsObject.toArray();