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

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

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

(Or)

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

response.getReturnValue().length > 0