chain.js 190 B

123456789
  1. import _ from './underscore.js';
  2. // Start chaining a wrapped Underscore object.
  3. export default function chain(obj) {
  4. var instance = _(obj);
  5. instance._chain = true;
  6. return instance;
  7. }