function unconstruct(func) {
    return function () {
      for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
        args[_key2] = arguments[_key2];
      }
      return construct(func, args);
    };
  }
Creates a new function that constructs an instance of the given constructor function with the provided arguments.

@param func - The constructor function to be wrapped and called.
@returns A new function that constructs an instance of the given constructor function with the provided arguments.