Skip to content

Instantly share code, notes, and snippets.

@iangilman
Created June 1, 2012 22:37
Show Gist options
  • Save iangilman/2855532 to your computer and use it in GitHub Desktop.
Save iangilman/2855532 to your computer and use it in GitHub Desktop.
useful JavaScript snippets
// from http://ianloic.com/2011/09/07/simply-logging-javascript-calls/
function logCall() {
console.log(logCall.caller.name + '(' +
Array.prototype.slice.call(logCall.caller.arguments)
.map(JSON.stringify).join(', ') +
')');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment