Skip to main content
Module

x/dtils/string.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/string.ts";

Parameters

str: string
maxLength: number

Returns

string