๐ Replace emojis from string or string[]
npm i replace-emoji
# or
yarn add replace-emoji
import replaceEmoji from 'replace-emoji';
// or
const { replaceEmoji } = require('replace-emoji');
replaceEmoji('๐ค123'); // => 123
replaceEmoji('๐ค123', '6'); // => 6123
replaceEmoji(['๐ค1', '๐ค2']); // => ['1', '2']
/**
*
* @param s The string or strings to be replaced
* @param r The content to be replaced
* @param reg Customize RegExp
* @returns Replaced result
*/