Skip to content

How to find the index of property in array of object in TypeScript?

const index = objectArray.findIndex((item) => item.name === 'Israel');
See also  Python code snippet - How to use selenium on default chrome ?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.