M
M
MegaPuxapb2020-04-18 18:28:09
JavaScript
MegaPuxapb, 2020-04-18 18:28:09

Check objects in an array for the presence of a key?

It is necessary that by clicking on add, there was a check by name, if there is such a number. ++
if not, the object was added to the array. etc.
Partially done. But it works crookedly. What's wrong, I don't understand.
https://jsfiddle.net/xpycm789/1uneboyz/4/

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2020-04-18
@MegaPuxapb

https://jsfiddle.net/xvtgwkm5/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question