Skip to content
Advertisement

How can I remove the last emoji of a group of emojis in javascript?

Let’s say I have this 3 emojis in a string: πŸ˜€πŸŽƒπŸ‘ͺ

There are not any spaces or any other character except emojis in the string.

How can I remove the last emoji in javascript?

Advertisement

Answer

Ok, here is how I solved it:

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement