JD
let builder = new Array()
builder.push("first line..")
builder.push...
ctx.reply(builder.join("\n"))
Size: a a a
f
let builder = new Array()
builder.push("first line..")
builder.push...
ctx.reply(builder.join("\n"))
f
f
f
JD
let builder = new Array()
builder.push("first line..")
builder.push...
ctx.reply(builder.join("\n"))
const a = ' 123 \n 456 \n 789 \n'
console.log(a.replace(/^\s+/gm,''))
но
можно и console.log(a.split('\n').map(e=>e.trim()).join('\n'))
OO
let builder = new Array()
builder.push("first line..")
builder.push...
ctx.reply(builder.join("\n"))
f
const a = ' 123 \n 456 \n 789 \n'
console.log(a.replace(/^\s+/gm,''))
но
можно и console.log(a.split('\n').map(e=>e.trim()).join('\n'))
f
OO
f
JD
JD
f
JD
f
I
А
I