Skip to main content
?

pad-leading

Summary​

This Action returns returns a new string padded with a leading filler which is made of elements from 'padding'.

Description​

Fields​

string​

A string which requires leading padding.

count​

The desired length of the string. If the length is not greater than the original string, the string is simply returned.

paddings​

The padding can be a string or an array of strings. If a string is used, the result will fill the space with whatever fraction of the string is needed, repeating. If an array is used, the result will include as many strings that are required to meet or exceed the desired size.