import { isFunction } from "./is-function.js";
const callOrReturn = (value, context = void 0, ...props) => {
  if (isFunction(value)) {
    if (context) {
      return value.bind(context)(...props);
    }
    return value(...props);
  }
  return value;
};
export {
  callOrReturn
};
//# sourceMappingURL=call-or-return.js.map
