Answer the question
In order to leave comments, you need to log in
How to create a search function in an array using JS?
I'm just starting to learn JavaScript and I can't figure out how to create a search function in an array that would work like this: I enter _id, the program will display an object from the array by this identifier, or -1 - if the object is not found by id? The result should be output to the console in this form:
Link to the array (it is quite large):
https://docs.google.com/document/d/1i2PMZygHpeX_g_...
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question