Developer, geek, and do-er of things.

Pre-conditions in JavaScript

When writing functions in JS you often find yourself doing a lot of parameter validation.

It'd be great if you could have pre-conditions for functions so once your code is hit you have valid arguments. Could be a job for higher order functions.