For this following code:
 var idArray = ["10","20","30"];
        $.each(idArray, function(i, value){
            if(<%= GeneralHelper.GetItemUrlByItemId(value)%>){ //I cannot use the variable value
                alert('record found');
        }
        });
Code for my class:
public sealed class HelperClass{
 public static bool HelperFunction(string Id){
 // check some data in database against the id
 // return true if record found  
}
}
 
    