To validate objects in the array key exists?

It is necessary that by clicking on add, there was a check by name if there is one count. ++
if not, the object is added to the array. etc.
Partly did. But works crookedly. what's wrong, I do not understand.
https://jsfiddle.net/xpycm789/1uneboyz/4/
April 19th 20 at 12:43
1 answer
April 19th 20 at 12:45

Find more questions by tags jQuery