1 2 3 4 5 6 7 8 9 10 11 12 13 14 | 13 23 23 23 23 23 22 | 'use strict' export default function instanciate(Ctor, deps) { var Surrogate, instance Surrogate = function () {} Surrogate.prototype = Ctor.prototype instance = new Surrogate() Ctor.apply(instance, deps) return instance } |