1// true
2let foundIndex:any
3foundIndex = (additionalPassenger as any).findIndex((item) => item.id === passengerId)
4(additionalPassenger as any).splice(foundIndex, 1)
5
6// false
7let foundIndex = (additionalPassenger as any).findIndex((item) => item.id === passengerId)
8(additionalPassenger as any).splice(foundIndex, 1)