1 contributor
Like
Install pad-left as a package?
Copied
npm i @bit/giladshoham.nodejsil.string.pad-left
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example modifieddraft
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
and packages in Bit or NPM to the example. any of the 1 million componentstoggle layout
No preview available
chevron_left
chevron_right
leftPad (
str:
string
,len:
number
,ch:
) : string
string
pad a string to the left.
Example
Arguments
str:
string
string to pad
len:
number
total
ch:
string
char to use for padding
Returns
string
modified string
Test Summary
#leftPad() should pad string | Pass |
#leftPad() should not pad string | Pass |
#leftPad() should pad string | Pass |