D
D
Damruss2017-08-12 17:50:30
JavaScript
Damruss, 2017-08-12 17:50:30

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:
G6XZryv6.png
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 question

Ask a Question

731 491 924 answers to any question