結果 : check if object or string javascript