I am checking a value in my controller.Here is my code.
var contents = atob(response.documents);
// I checked the value in contents . it is displaying ""
if(contents === ""){
// no contents
}
the if condition is retuning false, when the contents has "" and when the contents has data. How to check condition?