code: function getKeyAttributes(key) {
    if (typeof key === 'string') {
      key = {key}
    }
    return {
      maxRanking: Infinity,
      minRanking: -Infinity,
      ...key,
    }
  }
docs: Gets all the attributes for the given key
  @param {Object|String} key - the key from which the attributes will be retrieved
  @return {Object} object containing the key's attributes