src/index.js
function convertFields (infields) {
  const fields = {}

  _.each(infields, (field) => {
    field.outName = convertFieldName(field.name)
    fields[field.name] = field
  })
  return fields
}
function convertFields (infields) {
  const fields = {}

  _.each(infields, (field) => {
    field.outName = convertFieldName(field.name)
    fields[field.name] = field
  })
  return fields
}
function convertFields ( infields ) { const fields = { } _ . each ( infields , ( field ) => { field . outName = convertFieldName ( field . name ) fields [ field . name ] = field } ) return fields }
Converts a set of fields to have names that work well in JS

@params {object} inFields - the original fields object from the esri json
@returns {object} fields - converted fields
@private
Converts a set of fields to have names that work well in JS