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.
>Solution :
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