in json file,
Const =
[{
"id": "001",
"name": "The Boys",
"date": "2022",
"genre": "Comedy",
"type": "series"
}, {
"id": "002",
"name": "Money Heist",
"date": "2020",
"genre": "Action",
"type": "series"
}, {
"id": "003",
"name": "John Wick",
"date": "2022",
"genre": "Action",
"type": "movie"
}
I want to only display only one particular type. For instance, I don’t want to display all files but only "type": "series" on my page without showing the others
Thanks for the help
2
Answers
here’s the old school way to do this. >Look into the js filter() function