Skip to content

applyTransforms

applyTransforms(document: Document, transforms: readonly Transform[]): Document

Deep-clone document and fold transforms over the clone, in order.

The input is never mutated. With no transforms the clone is skipped and the original is returned (callers must treat the result as read-only).

Parameter Type

document

Document

transforms

readonly Transform[]

Document