prorm API Reference
← Documentation
GitLab
Preparing search index...
index
pad
Function pad
pad
(
str
:
string
,
length
:
number
,
char
?:
string
,
direction
?:
"left"
|
"right"
|
"both"
,
)
:
string
Pad string to specified length
Parameters
str
:
string
length
:
number
char
:
string
= ' '
direction
:
"left"
|
"right"
|
"both"
= 'left'
Returns
string
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
← Documentation
GitLab
prorm API Reference
Loading...
Pad string to specified length