Archive for August 2008

fSignatures, a JavaScript library to check argument types and object interfaces

I’ve just written a small JavaScript library that allows you to wrap a function in another one, which will check whether the parameters and return value are of the right type. It’s a functionality I miss from statically typed languages. It also allows you to check whether a set of functions, along with specified signatures, are present in an object. This is similar to the concept of interface found in other languages, especially Java.

Some functionality may be missing. I’m trying to measure interest in the lib before investing more time in any particular direction.