Skip to content

@serenity-is/corelib / zeroPad

Function: zeroPad()

zeroPad(n, len): string

Pads the start of string to make it the specified length.

Parameters

n

number

The number to pad.

len

number

Target length of the string.

Returns

string

Defined in

src/q/strings-compat.ts:123