Skip to content

Latest commit

 

History

History
35 lines (18 loc) · 489 Bytes

padLeft.md

File metadata and controls

35 lines (18 loc) · 489 Bytes

@serenity-is/corelib / padLeft

Function: padLeft()

padLeft(s, len, ch): any

Pads the string to the left with the specified character.

Parameters

s

string | number

len

number

Target length of the string.

ch

string = ' '

Character to pad with.

Returns

any

Padded string.

Defined in

src/q/strings-compat.ts:37