結果 : check if type of value is string javascript