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

16 lines (12 loc) 337 B
define(function () { /** * "Convert" value into a 32-bit unsigned integer. * IMPORTANT: Value will wrap at 2^32. */ function toUInt(val){ // we do not use lang/toNumber because of perf and also because it // doesn't break the functionality return val >>> 0; } return toUInt; });