src/index.js
function parseGeometry (geometry) {
  try {
    const parsed = geometry ? arcgisToGeoJSON(geometry) : null
    if (parsed && parsed.type && parsed.coordinates) return parsed
    else {
      return null
    }
  } catch (e) {
    console.error(e)
    return null
  }
}
function parseGeometry (geometry) {
  try {
    const parsed = geometry ? arcgisToGeoJSON(geometry) : null
    if (parsed && parsed.type && parsed.coordinates) return parsed
    else {
      return null
    }
  } catch (e) {
    console.error(e)
    return null
  }
}
function parseGeometry ( geometry ) { try { const parsed = geometry ? arcgisToGeoJSON ( geometry ) : null if ( parsed && parsed . type && parsed . coordinates ) return parsed else { return null } } catch ( e ) { console . error ( e ) return null } }
Convert an esri geometry to a geojson geometry

@param {object} geometry - an esri geometry object
@return {object} geojson geometry
@private
Convert an esri geometry to a geojson geometry