I've code like this:
var isPushEnabled;
OneSignal.isPushNotificationsEnabled(function(response) {
    if (response) {
        isPushEnabled = true;
        console.log(isPushEnabled); // it shows true
    } else {
        isPushEnabled = false;
        console.log(isPushEnabled); // it shows false
    }
});
console.log(isPushEnabled); // it shows undefined
I'm looking for a way to show "true" or "false" instead of "undefined" in the last stage.
Thanks in advance for reply!
