This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
1
Use a specific value from an array
Post Flair (click to view more posts with a particular flair)
Post Body
So i have an array containing multiple values like this:
const track_list = [ {track_id: 'a', track_name: 'apple'}, {track_id: 'b', track_name: 'boy'}, {track_id: 'c', track_name: 'cat'} ];
I want to filter this array and show value of track_name by filtering it with track_id.
How do I do it?
I'm trying it like this but isn't working.
var track_full_name = track_list.filter((row) => row[0]==='monza');
track_full_name.forEach((item) => {
document.write("<tr><th colspan='5'>" item.track_name "</th></tr>");
});
Author
Account Strength
50%
Account Age
2 years
Verified Email
Yes
Verified Flair
No
Total Karma
447
Link Karma
315
Comment Karma
132
Profile updated: 5 days ago
Subreddit
Post Details
We try to extract some basic information from the post title. This is not
always successful or accurate, please use your best judgement and compare
these values to the post title and body for confirmation.
- Posted
- 4 months ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/AskProgramm...