79102207

Date: 2024-10-18 13:12:02
Score: 0.5
Natty:
Report link

const foo = [["a", "b", "c"], ["a", "b", "c"], ["a", "b", "c"],[['x','y','z']]];
const bar = foo.flat(Infinity)

console.log(bar)

Info: Array.Flat with parameter Infinity means flat it until no nested array exist.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Shofiul