結果 : check if data is an object javascript