123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- 'use strict';
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = reflectAll;
- var _reflect = require('./reflect.js');
- var _reflect2 = _interopRequireDefault(_reflect);
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
- function reflectAll(tasks) {
- var results;
- if (Array.isArray(tasks)) {
- results = tasks.map(_reflect2.default);
- } else {
- results = {};
- Object.keys(tasks).forEach(key => {
- results[key] = _reflect2.default.call(this, tasks[key]);
- });
- }
- return results;
- }
- module.exports = exports.default;
|