T
T
TechNOIR2018-04-10 12:56:33
JavaScript
TechNOIR, 2018-04-10 12:56:33

Jquery+GetJSON. How to get objects that do not contain the specified value?

Good afternoon.

I am requesting data from json using GetJSON. I receive in a variable value
The data contain 2 values.
Ie at console.log(value) the result is produced:
user1
user2

Is it possible to specify a condition so that only user2 is displayed? The values ​​are always different, but user1 is always the same.
That is, the condition should be of type value(Not containing user1)

Thanks in advance

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