JSFiddle - React, Tailwind, and code Playground

JavaScript

/*jslint browser: true, white:true, sloppy:true */
var current = {
    remove: true,
    nodeType: 3,
    nodeValue: "\u200b\u200b\u200b"
};

if (current.remove && current.nodeType === 3 
    && current.nodeValue.match(/^[\u200B]*$/g) !== null)
{
    window.alert("YOU CAN DO IT");
}
else
{
    window.alert("you can't do it");
}