結果 : check if item is object javascript