"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = runFunction;
require("core-js/modules/es.array.iterator.js");
require("core-js/modules/web.dom-collections.iterator.js");
/** 如果是个方法执行一下它 */
function runFunction(valueEnum, ...rest) {
  if (typeof valueEnum === 'function') {
    return valueEnum(...rest);
  }
  return valueEnum;
}