_chainResult.js 200 B

123456
  1. import _ from './underscore.js';
  2. // Helper function to continue chaining intermediate results.
  3. export default function chainResult(instance, obj) {
  4. return instance._chain ? _(obj).chain() : obj;
  5. }