@technobuddha > library > String > Deconstruction
Function: chop()
ts
function chop(
input: string,
length: number,
__namedParameters: ChopOptions): string[];Defined in: chop.ts:21
Break a string into equal sized segments of characters
Parameters
| Parameter | Type | Description |
|---|---|---|
input | string | The string to break apart |
length | number | The length of each segment |
__namedParameters | ChopOptions | - |
Returns
string[]
Array of segments