Find the index of an item in an array by a specific property and value.
The array to search.
The property key to match.
The value to match.
The index of the item, or -1 if not found.
Find the index of an item in an array by a specific property and value.