Skip to content

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

const index = objectArray.findIndex((item) => === 'Israel');
See also  Rank sort a list of dictionaries based on a value in Python

Leave a Reply

Your email address will not be published.

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