I need help on filtering a Javascript array to remove names that DO NOT include at least one of a series of letters listed in a second array. I have tried over and over, using combinations of filter(), and also nested FOR loops. EXAMPLE:
name = ["chuck","lina","wanda","denise","reggie","candy"];
letter = ["h","l","z","e"];
The array returned by filter() should be:
nametwo = ["wanda","candy"];
It's simple to explain but I just cannot make it work in code. I've found many examples of filter() on here but none has helped. Thanks!