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:

ParameterTypeDescription
stateTThe state to copy.

Returns: TA copy of the state.