UNPKG

tastypie

Version:

Tastypie is a webservice API framework for Node.js based on Django's Tastypie Framework. It provides a convenient, yet powerful and highly customizable, abstraction for creating REST-style interfaces

14 lines (10 loc) 241 B
define(['./toInt', './nth'], function (toInt, nth) { /** * converts number into ordinal form (1st, 2nd, 3rd, 4th, ...) */ function ordinal(n){ n = toInt(n); return n + nth(n); } return ordinal; });