src/errors/arguments.js
/**
 * Get normalized ordinal value for an index.
 * toOrdinalString(index: Number) -> String
 */
Get normalized ordinal value for an index.
Get normalized ordinal value for an index .
function toOrdinalString(index) {
  switch (index + 1) {
    case 1: return 'First'
    case 2: return 'Second'
    case 3: return 'Third'
    case 4: return 'Fourth'
    case 5: return 'Fifth'
    case 6: return 'Sixth'
    default: return 'Unknown'
  }
}
function toOrdinalString ( index ) { switch ( index + 1 ) { case 1 : return 'First' case 2 : return 'Second' case 3 : return 'Third' case 4 : return 'Fourth' case 5 : return 'Fifth' case 6 : return 'Sixth' default : return 'Unknown' } }
Get normalized ordinal value for an index.
Get normalized ordinal value for an index .