My dream last night told me that this bit of code was overcomplicated when there's a much simpler way to do it
Please Login to reply.
You got this
Not a JS dev, but curious what you come up with. My first thought was checking indexOf