I have an array which looks like :
const tilesToShow = ['student','teacher', 'marks', 'presenty']
const response = ['student','teacher', 'internalMarks','RollNumber' 'marks','presenty']
Now, Here I want to show user only the tiles that are present in the tilesToShow
array, but need to check the api response as well.
So, I have to filter the reponse, means remove the tiles from the response which are not present in the tilesToShow
array. and then iterate the filtered array.
So How can I do this ?
Thanks.