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

17 lines (13 loc) 277 B
define(function(){ /** * Count number of full steps. */ function countSteps(val, step, overflow){ val = Math.floor(val / step); if (overflow) { return val % overflow; } return val; } return countSteps; });