Repositorio del curso CCOM4030 el semestre B91 del proyecto Artesanías con el Instituto de Cultura

tap.js 295B

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