var stringsToSearch = ["cat", "dog", "rat"];
fromThisArray = ["rabbit", "snake", "cow", "cat", "dog"];
If stringToSearch
is found in fromThisArray, It should delete those strings and return the count of the array.
Similar question were asked in this forum but they are finding single string but my requirement was to search multiple string and delete those string.
By using
filter
andindexOf