function isPointCoordinates(array) {
  if (
    array.length !== 2 &&
    !(typeof array[0] == "number" && typeof array[1] == "number")
  ) {
    return false;
  }

  return true;
}
Given an array, check whether it can represent the coordinates of a point.

@param {Array} array - Array to check.
@returns {boolean} - Whether the array can be the coordinates of a point.