hi Nicholas C. Zakas:
I am very glad to write to you. I am reading your book《Understanding ES6》recently. I think this is a very nice book. But I have a problem about the 12 chapter when create a array object by proxy.
I think it may be like this code:
Reflect.set(trapTargat, 'length', Number(key) + 1)
But not this you writed:
Reflect.set(trapTargat, 'length', currentLength + 1)
This is an example to explain the problem:
Normal array:
When run your code:
When run my new code:
I do not know is there any mistake in your code ?
Best wishes and hope your reply!