let a = []
_.forEach(state.passengersInfo,(p , index) => {
if (p.headerTitle == pType) {
a.push(index)
}
})
state.passengersInfo.splice(_.max(a) , 1)
Please format the code you posted, by wrapping it in triple backticks. -> `
Brrrrrr
Обсуждают сегодня