UNPKG

468 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3const lodash_1 = require("../wrap/lodash");
4const is_callback_1 = require("../matchers/is-callback");
5const callback_1 = require("../callback");
6function default_1(type, args) {
7 if (type === 'thenCallback' && !lodash_1.default.some(args, is_callback_1.default)) {
8 return args.concat(callback_1.default);
9 }
10 else {
11 return args;
12 }
13}
14exports.default = default_1;