UNPKG

606 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3var factory_1 = require("./factory");
4var applicators_1 = require("./applicators");
5var utils_1 = require("./utils");
6/**
7 * Returns the first argument from the function regardless of
8 * the decorated functions return value.
9 */
10exports.Tap = factory_1.DecoratorFactory.createDecorator(new factory_1.DecoratorConfig(function (fn) { return utils_1.returnAtIndex(fn, 0); }, new applicators_1.PreValueApplicator(), { optionalParams: true }));
11exports.tap = exports.Tap;
12exports.default = exports.Tap;
13//# sourceMappingURL=tap.js.map
\No newline at end of file