The below first logs 0, and then logs 1. How do I store a copy of the object, rather than a reference to it?
0
1
debug.log(vi.details.segment); vi.nextSegment = vi.details; vi.nextSegment.segment++; debug.log(vi.details.segment);