src/index.js
function getKeyAttributes(key) {
  if (typeof key === 'string') {
    key = {key}
  }
  return {
    maxRanking: Infinity,
    minRanking: -Infinity,
    ...key,
  }
}
function getKeyAttributes(key) {
  if (typeof key === 'string') {
    key = {key}
  }
  return {
    maxRanking: Infinity,
    minRanking: -Infinity,
    ...key,
  }
}
function getKeyAttributes ( key ) { if ( typeof key === 'string' ) { key = { key } } return { maxRanking : Infinity , minRanking : - Infinity , ... key , } }
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
Gets all the attributes for the given key