Jak znaleźć indeks właściwości w tablicy obiektu w TypeScript

const index = objectArray.findIndex((item) => item.name === 'Israel');
Perfect Peccary