結果 : check if string or object javascript