Check whether a string has any emoji
npm install has-emoji> Check whether a string has any emoji
This can be useful when you need to prevent emoji in user input, for example, for usernames.
``sh`
npm install has-emoji
`js
import hasEmoji from 'has-emoji';
hasEmoji('Unicorn 🦄');
//=> true
hasEmoji('Cat');
//=> false
``
- @sindresorhus/is - Type check values