update inline test
This commit is contained in:
parent
48f2c4f9ee
commit
666815f566
1 changed files with 2 additions and 2 deletions
|
@ -22,8 +22,8 @@ Ox.formatCount <f> Returns a string like "2 items", "1 item" or "no items".
|
|||
'no items'
|
||||
> Ox.formatCount(1, 'item')
|
||||
'1 item'
|
||||
> Ox.formatCount(1000, 'country', 'countries')
|
||||
'1,000 countries'
|
||||
> Ox.formatCount(1000, 'city', 'cities')
|
||||
'1,000 cities'
|
||||
@*/
|
||||
Ox.formatCount = function(number, singular, plural) {
|
||||
return (number === 0 ? 'no' : Ox.formatNumber(number)) + ' '
|
||||
|
|
Loading…
Reference in a new issue