結果 : check if element is object javascript