Skip to content

Returns whether a string contains only emojis or not.

License

Notifications You must be signed in to change notification settings

jpwilliams/is-only-emojis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

is-only-emojis

Returns whether a string contains only emojis or not.

const isOnlyEmojis = require('is-only-emojis')

isOnlyEmojis('') // true
isOnlyEmojis('  😲 -> 😎') // false
isOnlyEmojis('\n❤️ 🚗') // true
isOnlyEmojis('Coming 🔜') // false