Profile
Achievement
inkdeep's Recent SnippetsTagged javascript
- All /
« Prev 1 Next »
Namespace to avoid collision with other javascript variable/method names
1
772
posted 15 years ago by inkdeep
This comes in handy when working in big objects and you need to see what's happening on the inside of an instance.
I aliased 'console.log' to 'put' and wrapped it in a try/catch block that throws alerts if no console is available. Less typing - an...
1
731
posted 15 years ago by inkdeep