0

Can someone tell me how to flatten an array of arbitrarily nested arrays of integers into a flat array of integers?

E.g:

[[1,2,[3]],4] > [1,2,3,4]
assylias
  • 321,522
  • 82
  • 660
  • 783

0 Answers0