Skip to content

Documentation


Documentation / @blazetrails/actionpack / ActionView / truncate

Function: truncate() ​

truncate(text, options?, block?): SafeBuffer | null

Defined in: packages/actionview/dist/helpers/text-helper.d.ts:15

Parameters ​

ParameterType
textstring | SafeBuffer | null | undefined
options?TruncateOptions
block?() => unknown

Returns ​

SafeBuffer | null