Given a string and a length, add padding to the beginning of the string to make it the given length.
// input:
const s = 'hello', l = 10
// output:
' hello'
(Ctrl + ')
Loading...
/* output */
Next(Ctrl + y)
Given a string and a length, add padding to the beginning of the string to make it the given length.
// input:
const s = 'hello', l = 10
// output:
' hello'
/* output */