My function is not returning the title
of the interval
, it keeps returning undefined
.
Function
filterByCategories () {
return _.orderBy(this.meetups.filter(item => {
console.log('title: ' + JSON.stringify(item.interval.title, null, 4))
JSON (content of this.meetups
):
[
{
"id": "-12345",
"title": "abcds",
"description": "Hello3",
"date": "2023-12-29",
"location": {
"color": "grey darken-2",
"icon": "not_interested",
"id": "none",
"title": ""
},
"creatorId": "abcd1234",
"time": "24:00",
"color": {
"color": "red darken-2",
"id": "06",
"title": "Ret"
},
"interval": {
"color": "green darken-2",
"icon": "local_activity",
"title": "Weekly",
"value": 3
},
"statusType": false,
"pause": false,
"pushNotification": false
}
]
What is the correct method to access the title of the interval object?