Typescript How to filter filter array of objects to single new object : I am wanting to filter this array of objects (StopDetails) and set a new object (PickDetail) to the object in the array that has the TentativePickFlag = true.

[![enter image description here][1]][1]


  [1]: https://i.stack.imgur.com/TUdc8.jpg