UNPKG

@newdash/newdash

Version:

javascript/typescript utility library

11 lines (10 loc) 366 B
export default createCtor; /** * Creates a function that produces an instance of `Ctor` regardless of * whether it was invoked as part of a `new` expression or by `call` or `apply`. * * @private * @param {Function} Ctor The constructor to wrap. * @returns {Function} Returns the new wrapped function. */ declare function createCtor(Ctor: Function): Function;