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 (10 loc) 301 B
define(['./findLastIndex'], function (findLastIndex) { /** * Returns last item that matches criteria */ function findLast(arr, iterator, thisObj){ var idx = findLastIndex(arr, iterator, thisObj); return idx >= 0? arr[idx] : void(0); } return findLast; });