Appends an ordinal suffix (st, nd, rd, th) to a number.
The number to format (defaults to 0)
The number formatted as a string with its ordinal suffix
suffix(1); // '1st'suffix(23); // '23rd' Copy
suffix(1); // '1st'suffix(23); // '23rd'
Appends an ordinal suffix (st, nd, rd, th) to a number.