結果 : check if type is function javascript