Skip to main content

I want to access Target value in Proxy object which is showing by Chrome console. How should I access in LWC?

Proxy {0: {…}}

[[Handler]]: Object

[[Target]]: Array(1)

0: {Id: '01t5i000001QMvSAAW', Name: 'GenWatt Propane 500kW', ProductCode: 'GC3040', Brand__c: 'GenWatt', Stock_Quantity__c: 10, …}

length: 1

[[Prototype]]: Array(0)

[[IsRevoked]]: false

 
답변 1개
  1. 2022년 7월 10일 오전 8:26
    HKI Lokesh,

    You can direct access like

    yourObject[0].Id

    yourObject[0].Name

    yourObject[0].ProductCode

    yourObject[0].Brand__c

    yourObject[0].Stock_Quantity__c

    if you need any assistanse, Please let me know!!

    Kindly mark my solution as the best answer if it helps you.

    Thanks

    Mukesh
0/9000