chain.js 190 B

12345678
  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. }