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

10 lines (9 loc) 188 B
define(function(){ /** * Clamps value inside range. */ function clamp(val, min, max){ return val < min? min : (val > max? max : val); } return clamp; });