Using lodash, how to get the array of indexes of all matching elements? As example:
Animals = [{Name: 'Dog', Id: 0},
{Name: 'Cat', Id: 1},
{Name: 'Mouse', Id: 2},
{Name: 'Horse', Id: 3},
{Name: 'Pig', Id: 3}]
And then I want to find indexes of all elements with Id == 3.
Expected output:
Indexes = [3,4];