find index of object in array javascript by name

welcome to shbcf.ru