Skip to content

Cm5Mode.copyState method

Cm5Mode › copyState

Unofficial

Given a state, returns a safe copy of that state.

Signature:

copyState(state: T): T

Parameters:

Parameter Type Description
state T The state to copy.

Returns: TA copy of the state.