79480991

Date: 2025-03-03 12:39:24
Score: 1.5
Natty:
Report link

can try with map() and join as well.

const a = ["a18", [['25', 0], ['24', 3]]];

const outstring = `[ ${a[1].map(el => `[ '${el[0]}', ${el[1]} ]`).join(', ')} ]`;

console.log("outstring", outstring);

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): can
  • Low reputation (1):
Posted by: kita