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

19 lines (14 loc) 371 B
define(['./unique', './append'], function (unique, append) { /** * Concat multiple arrays and remove duplicates */ function union(arrs) { var results = []; var i = -1, len = arguments.length; while (++i < len) { append(results, arguments[i]); } return unique(results); } return union; });