var cake = function( a, b, c ){ // This function will only be called if a is a number, // b is a string and c is a function. }.hint( Type.Number, Type.String, Type.Function ); cake( 3, 'Hello World!', function(){} ); cake( 'Hello World!', 4, function(){} ); // Will fail!