postMessage() or when storing objects with IndexedDB. It builds up a clone by recursing through the input object while maintaining a map of previously visited references in order to avoid infinitely traversing cycles.
Functionobjects cannot be duplicated by the structured clone algorithm; attempting to do so will throw a
RegExpobjects is not preserved.
|All primitive types||However not symbols|
|ArrayBufferView||This basically means all typed arrays like Int32Array etc.|
|Object||This just includes plain objects (e.g. from object literals)|
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.