For deleting all text except emojis I would go with the “other symbol” category (So) and negate the category using uppercase P.
value.replace(/\P{So}+/, "")
For details on unicode categories read Unicode Categories on Regular-Expressions.info.