repackaging: all the file moves
This commit is contained in:
9
modules/@angular/core/testing/lang_utils.ts
Normal file
9
modules/@angular/core/testing/lang_utils.ts
Normal file
@ -0,0 +1,9 @@
|
||||
export function getTypeOf(instance) {
|
||||
return instance.constructor;
|
||||
}
|
||||
|
||||
export function instantiateType(type: Function, params: any[] = []) {
|
||||
var instance = Object.create(type.prototype);
|
||||
instance.constructor.apply(instance, params);
|
||||
return instance;
|
||||
}
|
Reference in New Issue
Block a user