cloneValue function

Value cloneValue(
  1. Value value
)

Clone a value to make it writable, typically a list or a map.

Other supported object remains as is.

This should be used to create a writable object that can be modified.

Implementation

Value cloneValue(Value value) => utils.cloneValue(value);