Keep an eye on structuredClone() to use in micro-dash once it seems available enough.
structuredClone()