function isLonLatTuple (object) {
  return (Array.isArray (object) && 
      typeof object[0] === 'number' && 
      typeof object[1] === 'number')
}
/**
 * Test whether an object is an array containing two numbers (longitude and latitude)
 * 
 * IMPORTANT: this function cannot see the difference between an array with lat/lon
 *            or an array with lon/lat numbers. It assumes an order lon/lat.
 * 
 * @param {*} object Anything
 * @param {boolean} Returns true when object is of type LonLatTuple
 */
Test whether an object is an array containing two numbers (longitude and latitude)

this function cannot see the difference between an array with lat/lon
or an array with lon/lat numbers. It assumes an order lon/lat.

@param {*} object Anything
@param {boolean} Returns true when object is of type LonLatTuple
Test whether an object is an array containing two numbers ( longitude and latitude ) this function cannot see the difference between an array with lat / lon or an array with lon / lat numbers . It assumes an order lon / lat . @param { * } object Anything @param { boolean } Returns true when object is of type LonLatTuple
function isLonLatTuple (object) {
  return (Array.isArray (object) && 
      typeof object[0] === 'number' && 
      typeof object[1] === 'number')
}
function isLonLatTuple ( object ) { return ( Array . isArray ( object ) && typeof object [ 0 ] === 'number' && typeof object [ 1 ] === 'number' ) }
Test whether an object is an array containing two numbers (longitude and latitude)
Test whether an object is an array containing two numbers ( longitude and latitude )