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