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

Number.humanizeCount

humanizeCount() -> string

Description

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

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

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

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

See Also