typescript block scoped variable used before its declaration
// true
let foundIndex:any
foundIndex = (additionalPassenger as any).findIndex((item) => item.id === passengerId)
(additionalPassenger as any).splice(foundIndex, 1)
// false
let foundIndex = (additionalPassenger as any).findIndex((item) => item.id === passengerId)
(additionalPassenger as any).splice(foundIndex, 1)