how to validate white space to false. am using if (value)
to check value
. method2
prints true. is there any method to check white space string like this ' '
method1() {
this.method2(' ');
}
method2(value) {
debugger;
if (value) {
console.log("true");
} else {
console.log("false");
}
}