javascript find index of object in array by property

visit shbcf.ru