Sha256: 2f9b1690cec13ce287a7d41d1a8db954645c585c73d7fb02904f66c1d871204b
Contents?: true
Size: 497 Bytes
Versions: 69
Compression:
Stored size: 497 Bytes
Contents
define(function () { /** * Returns "nth" of number (1 = "st", 2 = "nd", 3 = "rd", 4..10 = "th", ...) */ function nth(i) { var t = (i % 100); if (t >= 10 && t <= 20) { return 'th'; } switch(i % 10) { case 1: return 'st'; case 2: return 'nd'; case 3: return 'rd'; default: return 'th'; } } return nth; });
Version data entries
69 entries across 69 versions & 2 rubygems