Showing posts with label flatten. Show all posts
Showing posts with label flatten. Show all posts

Tuesday, May 1, 2012

How to flatten array in jQuery?


How to simply flatten array in jQuery? I have: [1, 2, [3, 4], [5, 6], 7] And want: [1, 2, 3, 4, 5, 6, 7]