Check if a string includes an emoji
npm i includes-emoji
CDN Links:
- https://cdn.jsdelivr.net/npm/includes-emoji@1.0.0/includes-emoji.js
- https://www.unpkg.com/includes-emoji@1.0.0/includes-emoji.js
// ES6
import includesEmoji from "includes-emoji";
// commonjs
const includesEmoji = require("includes-emoji");
includesEmoji("Hello 🚀 world!"); // True
includesEmoji("The weather is ☀️ today!"); // True
includesEmoji("String 69!"); // False
includesEmoji("I ♥ NY"); // False