glyphs function
The items of a list: words split on white space, a run of emoji with no spaces split into its emoji, repeats dropped.
import { glyphs } from '@dioramajs/particles/emoji'. Pictures (URLs) stay whole, as do words of plain text such as +1.
function glyphs(text: string): string[]Parameters
| Name | Type | Description |
|---|---|---|
text | string |
Defined in packages/particles/src/emoji.ts.