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.
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.