結果 : check if data is object javascript