Signature: padStart(s: string, targetLength: int, fill: string) -> Result<string, StringError>

Description: Pads s on the left with copies of fill to reach targetLength bytes.

Parameters

Returns: Result<string, StringError>

Example

padStart("7", 3, "0")  // Success { value: "007" }