Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 272 Bytes

README.md

File metadata and controls

12 lines (9 loc) · 272 Bytes

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