Answers for "remove elment from array by word"

0

remove elment from array by word

let arr = ['A', 'B', 'C'];
arr = arr.filter(e => e !== 'B'); // will return ['A', 'C']
Posted by: Guest on June-11-2021

Browse Popular Code Answers by Language