libs/api.js
function (intersects) {
  if (_.isString(intersects)) {
    try {
      intersects = JSON.parse(intersects);
    } catch (e) {
      throw new Error('Invalid Geojson');
    }
  }

  return intersects;
}
function (intersects) {
  if (_.isString(intersects)) {
    try {
      intersects = JSON.parse(intersects);
    } catch (e) {
      throw new Error('Invalid Geojson');
    }
  }

  return intersects;
}
function ( intersects ) { if ( _ . isString ( intersects ) ) { try { intersects = JSON . parse ( intersects ) ; } catch ( e ) { throw new Error ( 'Invalid Geojson' ) ; } } return intersects ; }
converts string intersect to js object
converts string intersect to js object