src/index.js
function validGeometry (geometry) {
  return geometry.coordinates.length === 2 && (geometry.coordinates[0] && geometry.coordinates[1]) ? true : false
}
function validGeometry (geometry) {
  return geometry.coordinates.length === 2 && (geometry.coordinates[0] && geometry.coordinates[1]) ? true : false
}
function validGeometry ( geometry ) { return geometry . coordinates . length === 2 && ( geometry . coordinates [ 0 ] && geometry . coordinates [ 1 ] ) ? true : false }
Check to see if geometry object is valid

@param {object} geometry - built geometry object
@return {boolean} validGeom - whether or not geom is valid
Check to see if geometry object is valid