function DeepFlat(array) {
        return [].concat(...array.map(value=>  (Array.isArray(value) ? DeepFlat(value) : value)));
      }
      
      Javascript language logo

      Flatten an array

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.