Wondering what’s next for npm?Check out our public roadmap! »

    concat-all

    1.0.1 • Public • Published

    concat-all

    Convert a multidimensional array into a one dimensional array

    Example

    var concatAll = require('concat-all');
     
    var onedem = concatAll(
      [
        1, 2, 3,
        [
          4, 5,
          [
            6
          ],
          7, 8
        ],
        9, 10
      ]
    );
     
    console.log(onedem);
    // [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

    License

    MIT

    Install

    npm i concat-all

    DownloadsWeekly Downloads

    7

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • avatar