arr.find(a => a.name === 'John').score = 0;


예를들어서 내가 하고싶은게 이건데 John이라는 이름을 가진애가 있는지 없는지 알수가 없을때


한줄에 한방에 해결 하는 방법?