Javascript – How to remove all emojis from a string if they are not equal to any of the ones in the object?
How to remove all emojis from a string if they are not equal to any of the ones in the object? For example: let allowedEmojis = { '😀': 50, '😂': 150, '🥳': 500 }; function filterEmojis() { // what should…