In the bellow code
$.ajax({
type: "post",
url: "/signIn",
dataType: "json",
data: data,
success: function (response) {
alert("response----------------"+response) //[]
if(response.length==0){
alert("No data found")
}
}
});
response is getting as []
and it doesn’t enter the if statement .
is there any possible way to check the empty array.