Ajouter un leader espacé en javascript de chaîne
const str = 'blah',
len = str.length,
space = 4;
console.log(str.padStart(len + space, ' '));
Defeated Dingo
const str = 'blah',
len = str.length,
space = 4;
console.log(str.padStart(len + space, ' '));