src/parseItems.js
function convertOfficialArray (attributes) {
  let map = {}
  attributes.map(attribute => {
    let key = officialAttributeMap[attribute.attribute]
    map[key] = attribute.modifier
  })
  return map
}
function convertOfficialArray (attributes) {
  let map = {}
  attributes.map(attribute => {
    let key = officialAttributeMap[attribute.attribute]
    map[key] = attribute.modifier
  })
  return map
}
Convert an array of {attribute: 'type', modifier: value} into a map