Home > @poq/transform > Transformer > toPlain
Method transforms array of typed objects into plain javascript objects.
Signature:
static toPlain(typedElements: Array<{
constructor: Function;
}>, options?: TransformOptions): PlainObj[];
Parameter | Type | Description |
---|---|---|
typedElements | Array<{ constructor: Function; }> | Array of typed instances to transform into plain objects. |
options | TransformOptions | (Optional) |
Returns:
PlainObj[]
Plain objects representation of instances.