src/index.js
function convertFieldName (name) {
  const regex = new RegExp(/\.|\(|\)/g)
  return name.replace(regex, '').replace(/\s/g, '_')
}
function convertFieldName (name) {
  const regex = new RegExp(/\.|\(|\)/g)
  return name.replace(regex, '').replace(/\s/g, '_')
}
function convertFieldName ( name ) { const regex = new RegExp ( / \.|\(|\) / g ) return name . replace ( regex , '' ) . replace ( / \s / g , '_' ) }
Converts a single field name to a legal javascript object key

@params {string} name - the original field name
@returns {string} outName - a cleansed field name
@private
Converts a single field name to a legal javascript object key