Skip to content

Instantly share code, notes, and snippets.

@bonkydog
Created July 22, 2013 21:36
Show Gist options
  • Select an option

  • Save bonkydog/6057927 to your computer and use it in GitHub Desktop.

Select an option

Save bonkydog/6057927 to your computer and use it in GitHub Desktop.
dump javascript object properties
// uses underscore.js
_(Object.keys(ajaxArguments.files[0])).sort().map(function(k) { var v; try {v = ajaxArguments.files[0][k]; } catch (e) { v = "[EXCEPTION]"}; return k + "=" + v })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment