Neat Little Tricks by Anup Bishnoi

Simple JavaScript assert

It’s better to fail with your own error than undefined is not a function.