structuredClone

external fun <T> structuredClone(value: T, options: StructuredSerializeOptions? = definedExternally): T(source)

MDN Reference