How to filter and show the value of array from ServerConnection

App fetched array from ServerConnection.

Need to get a value under a condition. (maybe, javascript, for, if, map, filter).
and show the value in UI.

How to implement it?

I tend to use something like this - for example, a server connect fetching lookups:

lookups.data.lookups.where(`lookup_type`, 11, "==").where(`is_hidden`, 0, "==")

Two .where() clauses act as an AND (lookup_type==11 AND is_hidden==0).

2 Likes