結果 : check if element is an object javascript