Home Reference Source Test Repository

buildDocs/tap.js

import { DecoratorConfig, DecoratorFactory } from './factory';
import { PreValueApplicator } from './applicators';
import { returnAtIndex } from './utils';
/**
 * Returns the first argument from the function regardless of
 * the decorated functions return value.
 */
export const Tap = DecoratorFactory.createDecorator(new DecoratorConfig((fn) => returnAtIndex(fn, 0), new PreValueApplicator()));
export { Tap as tap };
export default Tap;