0

I try to concat Array of multiple Arrays like this

`let soldNumber = [
 [1,2],
 [5,7],
 [35,67],
 ...
]`

to recieve this let soldNumber = [1,2,5,7,35,67,...]

1
  • 1
    soldNumber.flat() Commented Sep 15, 2020 at 8:57

2 Answers 2

0

soldNumber.flat()

Array.prototype.flat()

Sign up to request clarification or add additional context in comments.

Comments

-1
   let soldNumber = [[1,2], [5,7], [35,67]];
   let newSoldNumber = soldNumber.flat();

1 Comment

While this may solve the OP's problem, please explain your answer so as to help others too..

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.