Version: v0.8.1 - Beta.  We welcome contributors & feedback.

Number.humanizeCount

humanizeCount() -> string

Description

Get a string that describes the ordinal count of the number in English.

e.g. '1st', '2nd', '3rd'

$num = 1
$num.humanizeCount()
//= '1st'

$num = 2
$num.humanizeCount()
//= '2nd'

$num = 33
$num.humanizeCount()
//= '33rd'

See Also