title: When to perform parameter type checking in JavaScript?
body: <p>For the most part, the library I'm developing is going to be consumed internally by one or more projects.  With that in mind, should I add logic that performs type checking on all parameters for functions I write, on some parameters or none?  To do selective type checking, I feel, would create an inconsitent feel to the API, to do it for all parameters would bloat the code, and to do it for none could lead to error messages that aren't helpful.  Any guidance as to why or why not would be appreciated.</p>