Code coverage report for src/instanciate.js

Statements: 100% (7 / 7)      Branches: 100% (0 / 0)      Functions: 100% (2 / 2)      Lines: 100% (7 / 7)      Ignored: none     

All files » src/ » instanciate.js
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
}