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

13 lines (9 loc) 210 B
define(['./isNumber'], function (isNumber) { /** * Check if value is an integer */ function isInteger(val){ return isNumber(val) && (val % 1 === 0); } return isInteger; });