No Description

tap.js 336B

12345678910111213
  1. define(function () {
  2. // Invokes `interceptor` with the `obj` and then returns `obj`.
  3. // The primary purpose of this method is to "tap into" a method chain, in
  4. // order to perform operations on intermediate results within the chain.
  5. function tap(obj, interceptor) {
  6. interceptor(obj);
  7. return obj;
  8. }
  9. return tap;
  10. });