Sha256: cabaccb6cfd4edac722cebdcc279f6d4acf088ac9c41245ac45005d8ee075f09
Contents?: true
Size: 284 Bytes
Versions: 69
Compression:
Stored size: 284 Bytes
Contents
function F(){} /** * Do fn.apply on a constructor. */ function ctorApply(ctor, args) { F.prototype = ctor.prototype; var instance = new F(); ctor.apply(instance, args); return instance; } module.exports = ctorApply;
Version data entries
69 entries across 69 versions & 2 rubygems