Skip to content

Instantly share code, notes, and snippets.

@DoubleBrotherProgrammer
Created January 23, 2010 02:13
Show Gist options
  • Save DoubleBrotherProgrammer/284379 to your computer and use it in GitHub Desktop.
Save DoubleBrotherProgrammer/284379 to your computer and use it in GitHub Desktop.
var str = "";
for( xx in map )
{
// append
str += xx + " : " + map[ xx ] + "\n";
// dump when it gets long
if( str.length >= 300 )
{
alert( str );
// reset
str = "";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment