Created
June 19, 2014 09:33
-
-
Save Khaledgarbaya/aa0542ac8b1e3dbf4c78 to your computer and use it in GitHub Desktop.
Check if a dictionnary is empty in actionscript 3.0
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 isDictionaryEmpty(dict:Dictionary):Boolean | |
{ | |
for (var key:Object in dict) | |
{ | |
return false; | |
} | |
return true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment