Created
November 16, 2019 05:16
-
-
Save sahajamit/a675662a82f83342b1b35d4004272174 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// To Collect all the notifications arrived till now | |
function getCollectedNotifications(){ | |
window.notifications = [] ; | |
var count = 0; | |
for (var prop in window.notificationsMap) | |
count++; window.notifications.push(window.notificationsMap[prop]); | |
} | |
console.log("Total notifications count is: " + count); | |
return window.notifications; | |
}; | |
return getCollectedNotifications(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment