I\'m reading the documentation and I am constantly shaking my head at some of the design decisions of the language. But the thing that really got me puzzled is how arrays a
I use .copy() for this.
var a = [1, 2, 3] var b = a.copy() a[1] = 42