結果 : check if item is an object javascript