Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

278
Vistas
Finding Emoji combinations programmatically, is reversing the Spread Operator possible?

There are a number of emojis that are not just stand-alone Unicode characters. They are actually a combination of two or more other emojis. e.g.

console.log([...'👨‍👨‍👧‍👧']); // 👨 + 👨+ 👧+ 👧

console.log([...'🧑🏿‍❤️‍💋‍🧑🏾']); // 🧑 + ❤ + 💋 + 🧑

console.log([...'🧑‍🚀']); // 🧑 + 🚀

What I would like to know, is given the constituent parts, is it possible to go the other way and combine emojis so that you can generate the combined symbol? Really the opposite of what the Spread Operator is doing here.

e.g. Is it possible to generate 👨‍👨‍👧‍👧 from 👨,👨,👧,👧

I've tried I few different ideas but nothing seems to work - mainly just getting SyntaxErrors.

almost 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

First link in the google https://www.bram.us/2016/08/27/fun-with-javascript-and-emoji/

["👨", "‍", "👨", "‍", "👧", "‍", "👧"].reduce((prev, next) => prev + next)

It is really easy to achieve

almost 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda