prange.reverse.js
function reverse(combos) {
  const { offsuit, suited, pairs } = sortOut(combos)

  const ps = reversePairs(pairs)
  const os = reverseNonPairs(offsuit, 'o')
  const su = reverseNonPairs(suited, 's')
  const nonpairs = unsuitWhenPossible(new Set(os), new Set(su))

  return ps.concat(nonpairs).join(', ')
}
function reverse(combos) {
  const { offsuit, suited, pairs } = sortOut(combos)

  const ps = reversePairs(pairs)
  const os = reverseNonPairs(offsuit, 'o')
  const su = reverseNonPairs(suited, 's')
  const nonpairs = unsuitWhenPossible(new Set(os), new Set(su))

  return ps.concat(nonpairs).join(', ')
}
function reverse ( combos ) { const { offsuit , suited , pairs } = sortOut ( combos ) const ps = reversePairs ( pairs ) const os = reverseNonPairs ( offsuit , 'o' ) const su = reverseNonPairs ( suited , 's' ) const nonpairs = unsuitWhenPossible ( new Set ( os ) , new Set ( su ) ) return ps . concat ( nonpairs ) . join ( ', ' ) }
Converts a poker hand range to short notation.
It's the opposite of `prange`.

@name prange.reverse
@function
@param {Array.<String>} combos hand combos to be converted to short notation
@param {String} the short notation for the range
Converts a poker hand range to short notation . It s the opposite of prange .