Import
import { truncate } from '@contentful/f36-utils';
Example
Basic usage
import { truncate } from '@contentful/f36-utils';truncate('long string', { start: 3, end: 2 });// lon…ngtruncate('long string', { start: 3, replacement: '***' });// lon***