結果 : check if attribute in object javascript