結果 : determine type in javascript