I need some help. I need to match some value with one variable containing value which is comma separated string using Angular.js or Javascript. I am explaining my code below.
var special="2,1,4,5";
Here I need to search lets say 1 is present in this comma separated string or not. If the given value is present it will return true otherwise false.Please help.