open kadamwhite/wordpress-rest-api#5

Implement lo-dash/underscore support for return values

carldanley

I had the idea of extending the return values to support lo-dash or underscore so the developer could make use of sorting functions (among everything else these libraries support).

Though, after talking with @kadamwhite - I feel that we should make this as lightweight as possible and let the developer choose how they want to take action on the return results.

Still opening the Issue for discussion on this topic.

tbranyen

I do this with LayoutManager when you request a collection of child views. For instance:

// The return value from `getViews` is a wrapped Lo-Dash/Underscore instance.
var mainView = parent.getViews().find(function(view) {
  return view.name === "main";
});