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 (9 loc) 301 B
var findLastIndex = require('./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); } module.exports = findLast;