Permalink
Browse files

misc refactoring

  • Loading branch information...
1 parent 865bd98 commit e5fa9ade712bc311357d3a5c31d0eb16c1a9ce2a @tj committed Nov 28, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/inflection.js
View
@@ -113,7 +113,7 @@ Language.prototype.pluralize = function(word){
*/
Language.prototype.isPlural = function (word) {
- if (typeof word === 'number') {
+ if ('number' == typeof word) {
return (this.rules.pluralNumbers || /.*/).test(word);
} else {
return word == this.pluralize(this.singularize(word));

0 comments on commit e5fa9ad

Please sign in to comment.