Test name | Executions per second |
---|---|
structuredClone | 1170863.4 Ops/sec |
spread | 32933736.0 Ops/sec |
var list = ["test", "apple", "banana", "peach", "123", "foo", "bar", "tree", "dog"];
const copy = window.structuredClone(list);
const copy = [list];