createInstanceByType method
- Creates an instance of an object type.
-
type
an object type (factory function) to create.
-
args
arguments for the object constructor.
- Returns the created object instance.
-
type
an object type (factory function) to create.args
arguments for the object constructor.