src/reverseLookups.js
function addReverseLookupsForExtendeds (reverseDict, dict) {
  Object.keys(dict).forEach(function (key) {
    let pair = dict[key]
    let quality = pair[0]
    let extendedsArr = pair[1]
    extendedsArr.forEach(function (element) {
      reverseDict[element] = {
        quality: quality,
        extended: key
      }
    })
  })
}
function addReverseLookupsForExtendeds (reverseDict, dict) {
  Object.keys(dict).forEach(function (key) {
    let pair = dict[key]
    let quality = pair[0]
    let extendedsArr = pair[1]
    extendedsArr.forEach(function (element) {
      reverseDict[element] = {
        quality: quality,
        extended: key
      }
    })
  })
}
function addReverseLookupsForExtendeds ( reverseDict , dict ) { Object . keys ( dict ) . forEach ( function ( key ) { let pair = dict [ key ] let quality = pair [ 0 ] let extendedsArr = pair [ 1 ] extendedsArr . forEach ( function ( element ) { reverseDict [ element ] = { quality : quality , extended : key } } ) } ) }
extendeds are a little different, because they contain both the quality and the extendeds
extendeds are a little different because they contain both the quality and the extendeds