- Filter Array (return array except particular element)
let characters = [
{ name: 'Batman', team: 'Justice League' },
{ name: 'Hulk', team: 'Avengers' },
{ name: 'Flash', team: 'Justice League' },
{ name: 'Iron Man', team: 'Avengers' },
{ name: 'Deadpool', team: 'X-Force' }
];
const deadpool = characters[4];
// Create a new array that excludes exactly one element
characters = characters.filter(character => character !== deadpool);
//characters = characters.filter(item to be takern => item except deadpool)