UNPKG
todomvc
Version:
latest (0.1.1)
0.1.1
0.1.0
> Helping you select an MV\* framework
todomvc
/
examples
/
emberjs
/
js
/
helpers
/
pluralize.js
12 lines
(9 loc)
•
262 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
/*global Ember */
(
function
(
) {
'use strict'
;
Ember
.
Handlebars
.
helper
(
'pluralize'
,
function
(
singular, count
) {
/* From Ember-Data */
var
inflector =
Ember
.
Inflector
.
inflector
;
return
count ===
1
? singular : inflector.
pluralize
(singular); }); })();