Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/emoji/emoji.ts>replace

🦄 Emojis for dinosaurs
Go to Latest
function replace
import { replace } from "https://deno.land/x/emoji@0.2.1/emoji.ts";

Replace all emojis in a string.

Parameters

str: string
optional
replacement: string | ((emoji: Emoji) => string) = [UNSUPPORTED]
optional
trim = [UNSUPPORTED]

Returns

string