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