import { chunk } from "https://deno.land/x/ayonli_jsext@v0.9.72/esm/string/index.js";
Breaks the string into smaller chunks according to the given length.
Examples
Example 1
Example 1
import { chunk } from "@ayonli/jsext/string";
console.log(chunk("hello world", 3)); // ["hel", "lo ", "wor", "ld"]