Say you have two functions with the following signatures:
addClass( class )
addClass( class, duration )
You can use the length property of the function object to check the signature. Example:
length
function x(a) {} function y(a,b) {} alert(x.length); // shows "1" alert(y.length); // shows "2"