Sha256: 72ba725c012a1882a7fd0731da50bba010bbc41f340deb57c5162603d7cbb1cd
Contents?: true
Size: 255 Bytes
Versions: 69
Compression:
Stored size: 255 Bytes
Contents
var toInt = require('./toInt'); var nth = require('./nth'); /** * converts number into ordinal form (1st, 2nd, 3rd, 4th, ...) */ function ordinal(n){ n = toInt(n); return n + nth(n); } module.exports = ordinal;
Version data entries
69 entries across 69 versions & 2 rubygems