TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Burak Icel
NA
2
585
How to read the value from an object in an array?
Feb 24 2021 11:40 AM
hey everyone,
I have an array where i can't read the values from it.
i have:
const
interfaces: string =
this
.transformArray(product.interfaces);
to see the values i use:
console.log(product.interfaces)
console.log(interfaces)
and the console output is for product.interfaces:
[
{
amount:
null
,
interface
: [ [Object] ],
__typename:
'interfaces_interface_BlockType'
},
{
amount:
null
,
interface
: [ [Object] ],
__typename:
'interfaces_interface_BlockType'
},
{
amount:
null
,
interface
: [ [Object] ],
__typename:
'interfaces_interface_BlockType'
},
{
amount:
null
,
interface
: [ [Object] ],
__typename:
'interfaces_interface_BlockType'
}
]
and for interfaces:
undefined, undefined, undefined, undefined
The true value of this array should be sth like "Digital inputs and outputs (24 VDC level)". i guess i have to take the object from the array and read the object but its just guessing...
Can anyone help me pls?
Greetings
Reply
Answers (
2
)
how to put a declaration in a if-function?
Embed Yammer in Modern UI SharePoint Online