Curious about JavaScript ES6 and needing assistance! I have a simple question - how can I determine the order number of an object in an array?
[
{ "pk": 23, "image": "http://localhost:8000/media/users/1/2_27.jpg"},
{ "pk": 11, "image": "http://localhost:8000/media/users/1/2_27.jpg"},
{ "pk": 67, "image": "http://localhost:8000/media/users/1/2_27.jpg"}
]
Given params.id: 11, I would like to output order_object = 2