Y
Y
Ysset2020-05-01 07:25:29
JavaScript
Ysset, 2020-05-01 07:25:29

How to refer to a key in an array of objects in JS?

db.addDatabaseChangeListener(() => {
        allItems = db.query()
    });

here is a code element in which we put a lot of objects from BD in arr.
could you tell me how it is possible to go over the array and refer to the key of each object?
each object has the same keys

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Arthur, 2020-05-01
@Ysset

map

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question