MCPcopy Create free account
hub / github.com/curran/screencasts / createCtorWrapper

Function createCtorWrapper

introToChiasm/examples/code/latest/main-build.js:3752–3775  ·  view source on GitHub ↗

* 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.

(Ctor)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

createBindWrapperFunction · 0.70
createHybridWrapperFunction · 0.70
wrapperFunction · 0.70
createPartialWrapperFunction · 0.70

Calls 1

isObjectFunction · 0.70

Tested by

no test coverage detected