Skip to content

Instantly share code, notes, and snippets.

@torsday
Created August 20, 2013 18:44
Show Gist options
  • Save torsday/6285520 to your computer and use it in GitHub Desktop.
Save torsday/6285520 to your computer and use it in GitHub Desktop.
#testing #js
function assert(condition, message) {
if (!condition) {
throw message || "Assertion failed";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment