myArraym can have one level, two levels, or more levels.
Which statement flattens myArray when it can be arbitrarily nested?
A . myArray. reduce ((prev, curr) => prev.concat(curr) [ ]);
B . myArray. join (","). split (",");
C . [ ] .concat {. . .myArray) ;
D . myArray.flat(Infinity);
Answer: A
Latest JavaScript Developer I Dumps Valid Version with 144 Q&As
Latest And Valid Q&A | Instant Download | Once Fail, Full Refund