Quick question.
Lets say I have:
var specialthings = ['special1','special2','special3'];
var alotoftext = ['randomTextButHereIHavespecial1orspecial2orspecial3']
My goal is to seperate specialthings
from alotoftext
. So the outcome would be new var
or alot of text
(same to me) to be equal to:
var newvar or var alotoftext = ['randomTextButHereIHaveor']
basically to remove special1
special2
and special3
.
I don't want a remover like 0-9 if the case was numbers, but rather a function that would separate values of one string from another -- literally like this:
var new = alotoftext - specialthings
kind of an approach.