import { chars } from "https://deno.land/x/ayonli_jsext@v0.9.72/string/index.ts";
Returns the characters of the string (emojis are supported).
Examples
Example 1
Example 1
import { chars } from "@ayonli/jsext/string";
console.log(chars("Hello, World!")); // ["H", "e", "l", "l", "o", ",", " ", "W", "o", "r", "l", "d", "!"]
console.log(chars("δ½ ε₯½οΌδΈηοΌ")) // ["δ½ ", "ε₯½", "οΌ", "δΈ", "η", "οΌ"]
console.log(chars("π΄πβπ πππ¨βπ¨βπ§βπ§π¦πΎ")); // ["π΄", "π", "β", "π ", "π", "π", "π¨βπ¨βπ§βπ§", "π¦πΎ"]