1

I have the following thing named offer

Image here:

enter image description here

I want to get the value of assetid in items_to_give. I can get the value of steamid_other by offer.steamid_other. However, offer.items_to_give.assedid comes as undefined.

How can I access that? (get it's value)

1
  • 2
    offer.items_to_give is an array; therefore you need to do something like this: offer.items_to_give[0].assedid. Commented Jun 16, 2014 at 11:05

1 Answer 1

5

items_to_give is an array you should try this

offer.items_to_give[0].assetid
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.