```
this.someService.findDevices()
          .subscribe((segments) => {
            this.segments = Array.from(segments.segments);
            this.packs.forEach((pack) => {
              pack.segments = Array.from(segments.segments);
              pack.segments[0].devices[0].selected = true; //if commented, output is FALSE
              console.log(this.segments[0].devices[0]); // shows TRUE
            });
          });

```

I created a method where I'm trying to add the `segments` array to each pack in `this.packs`.
I am creating a new array using `Array.from()` but for some reason when I set the `pack.segments[0].devices[0]` to TRUE, `this.segments[0].devices[0]` is changing to true as well.

Any idea how to solve it?