939a0fa9e6721df85adf4b1367211e3c4e27da47
[platform/framework/web/crosswalk-tizen.git] /
1 var toInt = require('./toInt');
2 var nth = require('./nth');
3
4     /**
5      * converts number into ordinal form (1st, 2nd, 3rd, 4th, ...)
6      */
7     function ordinal(n){
8        n = toInt(n);
9        return n + nth(n);
10     }
11
12     module.exports = ordinal;
13
14