title: Javascript iterate over Unicode when Emoji has a skincolor
body: <p>The problem I am facing to right now is that when there are Emojis with a different skincolor than yellow that Javascript splits it in different chars instead of one.</p>
  <p>When I have emojis like this there is no problem an I get the results I want to have.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>let strs = [...""]
  
  console.log(strs)
  console.log(strs.length)</code></pre>
  </div>
  </div>
  </p>
  <p>But if I have emojis like this there is a problem because javascript don't let me use the [...] operator with this emojis:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>let strs = [...""]
  
  console.log(strs)
  console.log(strs.length)</code></pre>
  </div>
  </div>
  </p>
  <p>How can I tell Javascript that these is only one Emoji with the length of one and not two or more Emojis like in this example:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>let strs = [..."‍❤️‍‍"]
  
  console.log(strs)
  console.log(strs.length)</code></pre>
  </div>
  </div>
  </p>