How can I check whether a hashset
contains a particular value or not in javascript
? I have tried the following which is not working:
if (hashset.contains(finalDate)) {
alert("inside if");
}
My js code:
$.each(cdata.lines, function(idx, line){
// line.hashsetvariable is my hashset which contain all dates and
// let finaldate is 2012-19-12
// I want to check this date in my hashset.
}