src/index.js
function cvd (value, field) {
  const domain = _.find(field.domain.codedValues, (d) => {
    return value === d.code
  })
  return domain ? domain.name : value
}
function cvd (value, field) {
  const domain = _.find(field.domain.codedValues, (d) => {
    return value === d.code
  })
  return domain ? domain.name : value
}
function cvd ( value , field ) { const domain = _ . find ( field . domain . codedValues , ( d ) => { return value === d . code } ) return domain ? domain . name : value }
Looks up a value from a coded domain

@params {integer} value - The original field value
@params {object} field - metadata describing the attribute field
@returns {string/integerfloat} - The decoded field value
Looks up a value from a coded domain