code: function normalizeInSR (options) {
    // Look for geometry option's spatial reference
    let spatialReference
    if (_.has(options, 'geometry.spatialReference')) spatialReference = normalizeSR(options.geometry.spatialReference)
    else spatialReference = normalizeSR(options.inSR)
  
    if (spatialReference) return ((spatialReference.wkid) ? `EPSG:${spatialReference.wkid}` : spatialReference.wkt)
    return `EPSG:4326`
  }
docs: Normalize the input spatial reference for a geometry filter. Look on options.geometry object first.
  If spatial reference not present, look in options.inSR.  Defaults to EPSG:4326
  @param {object} options options object that may or may not have "geometry" and "inSR" properties
  @returns {string} EPSG:<wkid> or srs WKT; defaults to EPSG:4326