結果 : how to check type of parameter in javascript