I was nearly through porting YUI assertion modules to standalone libraries when the thought popped into mind that I should have perhaps asked on StackOverflow if this was necess
function assert(condition, message) { if (!condition) throw new Error(message) }