Get a non-negative integer's ordinal suffix form (e.g. 1 -> '1st').
1
'1st'
Non-negative integer to convert.
The number followed by its ordinal suffix, or the shared invalid-input message for anything else.
ordinal(1); // '1st'ordinal(11); // '11th'ordinal(21); // '21st' Copy
ordinal(1); // '1st'ordinal(11); // '11th'ordinal(21); // '21st'
Get a non-negative integer's ordinal suffix form (e.g.
1->'1st').