3 ms·
It also is one of the only languages where collections are value types. And it has to, to make 'let' create truly immutable objects. Without them, this: var
by Someone 11y ago
It also is one of the only languages where collections are value types.
And it has to, to make 'let' create truly immutable objects. Without them, this:
var a = [1,2,3]
let b = a
a += [4,5,6]
would change b.