Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function remove(array, element) {
- return array.filter(e => e !== element);
- }
- const vowelsAndX = ["a", "e", "i", "o", "u", "x"];
- const vowels = remove(vowelsAndX, "x");
- vowels.toString(); // "a,e,i,o,u"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement