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
| Parameter | Type |
|---|---|
text | string | SafeBuffer | null | undefined |
options? | TruncateOptions |
block? | () => unknown |
Returns
SafeBuffer | null