Skip to main content
Module

x/dtils/mod.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.0.0-beta.1/mod.ts";

Parameters

str: string
maxLength: number