My dream last night told me that this bit of code was overcomplicated when there's a much simpler way to do it

Reply to this note

Please Login to reply.

Discussion

You got this

Not a JS dev, but curious what you come up with. My first thought was checking indexOf