Although it seems that: ```javascript const last = array.lastItem; const last = array.item(-1); ``` both are equivalent, they are not: ```javascript array.lastItem = newValue; array.item(-1) = newValue; // it does not make sense ``` the assignation is not part of the `.item()` proposal. I have seen in the issues of this proposal interesting alternatives like: - #28 array[ ^n] - #23 array.get & array.set See https://github.com/tc39/proposal-item-method/issues/16 for the mirroring of this issue.
Although it seems that:
both are equivalent, they are not:
the assignation is not part of the
.item()proposal.I have seen in the issues of this proposal interesting alternatives like:
See tc39/proposal-relative-indexing-method#16 for the mirroring of this issue.