method SdlStringInput.prototype.chunk
SdlStringInput.prototype.chunk(from: number): string

Get the chunk from the given position. The returned string starts at from (0-based) and, if that isn't the end of the string, may be of any length greater than zero.

Parameters

from: number
  • The starting position of the chunk (0-based, inclusive).

Return Type

string

Usage

import { SdlStringInput } from ".";