Check whether a string has any emoji
This can be useful when you need to prevent emoji in user input, for example, for usernames.
$ npm install has-emoji
const hasEmoji = require('has-emoji');
hasEmoji('Unicorn ๐ฆ');
//=> true
hasEmoji('Cat');
//=> false
- @sindresorhus/is - Type check values
MIT ยฉ Sindre Sorhus