Difference between get (a ref) and get (a copy)

A copy is just that, a copy. But if you use get ref, any modifications you make will be written to the original.

In the first example, you don’t need to re-make the item and write it back. If you update any of the broken-out fields, that will be written back to the array element.

3 Likes