_chainResult.js 246 B

1234567891011
  1. define(['./underscore'], function (underscore) {
  2. // Helper function to continue chaining intermediate results.
  3. function chainResult(instance, obj) {
  4. return instance._chain ? underscore(obj).chain() : obj;
  5. }
  6. return chainResult;
  7. });