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 (11 loc) 256 B
define(['./filter'], function (filter) { /** * Remove all null/undefined items from array. */ function compact(arr) { return filter(arr, function(val){ return (val != null); }); } return compact; });