The result of the following code is only ♂️
, where I want to find all the unique graphic represationations shown in the Firefox output that I copied to the var a originally. (Basically the code should show the original a
string as output.)
How to do that?
<html>
<head>
<meta charset="UTF-8" />
<script>
var a = '♂️ ♂️ ♂️ ';
var b = [...new Set([...a])];
var c = b.join('');
function init() { document.getElementById('result').innerHTML = c; }
</script>
</head><body onload="init()">
<span id="result"></span>
</body>
</html>