How to check response.getReturnValue() returned value or not?

How to check response.getReturnValue() returned value or not?

The following examples are for JavaScript programming language.

We can use console() to check in Browser Console.

Sample Code:

console.log( 'Data - ' + JSON.stringify( response.getReturnValue() ) ); 

(Or)

Use the below code to check response.getReturnValue() returned value or not

Sample Code:

response.getReturnValue().length > 0

Leave a Reply