Remove items from one list if they contain strings from another list

I’m looking for the most efficient way to remove items from one list if they contain strings from another list. For example: B list contains: TomWentFishing SueStayedHome JohnGoesToSchool JimPlaysTennis A list contains: GoesToSchool SueStayed C list should contain: TomWentFishing JimPlaysTennis I’ve used this code, but it takes up a lot of time as the lists… Read More Remove items from one list if they contain strings from another list

I do not know how to limit the time in between calling my function

//let screenWidth = window.screen.width; //let screenHeight = window.screen.height; let screenWidth = 800; let screenHeight = 600; let assets = {}; let frames = 60; let score = 0; let lives = 3; let player; // let enemie; //let enemies; let bullet; //let bullets; let powerup = 0; let gameOver = true; function drawScoreBoard() { textSize(20);… Read More I do not know how to limit the time in between calling my function