Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

How to access values separately from object [duplicate]

$
0
0

I have this object returned in this way:

Object: {"data":"data1","value":"value1, value2"}

If i just call using Object.value it will return both values. Right now I want to access value1 and value2 separately and assign them to a separate variable. E.g var first = value1, var second = value2. How can I achieve this?


Viewing all articles
Browse latest Browse all 6287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>