JSFiddle - React, Tailwind, and code Playground

by forgetcolor

JavaScript

var a = '2‎ others'; // contains unicode
var b = '2 others';

console.log('a = '+a+', b = '+b);
console.log(a == b);

a.replace(/\u200e/g, '');

console.log('a = '+a+', b = '+b);
console.log(a == b);