I was creating a JavaScript flash script early last week, and needed a way to make sure an array was populated correctly. I stumbled across this script on OpenJS, which acts exactly like PHP’s print_r
function.
Usage
{code type=js}
dump( my_array );
{/code}
Code
Check out the source code here.
Continue reading print_r for JavaScript