minca
ApiInboxFunctions

Function: clip()

function clip(text, max): string;

Defined in: packages/core/src/inbox/inbox.ts:106

Cuts text to at most max characters without splitting one (a surrogate pair stays whole)

Parameters

ParameterType
textstring
maxnumber

Returns

string

On this page