I have a question whether this is possible or not.
For example, there is one code like below. But that code has an error for sure.
And I want to make if
is true
when one data is at some array.
Could you recommend some method?
This is my code:
var a = 1;
var model2 = [1, 2, 3];
if (a == model2) {
var b = a;
} else {
var c = a;
}