Created
February 21, 2022 13:52
-
-
Save St3ph-fr/f360ac361506bfe0abe6033c5c278799 to your computer and use it in GitHub Desktop.
This file contains 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
function countLabels() { | |
var labels = GmailApp.getUserLabels(); | |
var count = 0; | |
for(var key in labels){ | |
count++; | |
} | |
console.log('You have '+ count +' labels in Gmail.') | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment