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

x/dtils/mod.unstable.ts>truncate

The best unofficial library of utilities for Deno applications
Go to Latest
function truncate
import { truncate } from "https://deno.land/x/dtils@2.4.0/mod.unstable.ts";

Parameters

str: string
maxLength: number

Returns

string