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

    just-flatten-it

    3.1.0 • Public • Published

    just-flatten-it

    Part of a library of zero-dependency npm modules that do just do one thing.
    Guilt-free utilities for every occasion.

    Try it now

    import flatten from 'just-flatten-it';
    
    flatten([[1, [2, 3]], [[4, 5], 6, 7, [8, 9]]]);
    // [1, 2, 3, 4, 5, 6, 7, 8, 9]
    
    flatten([[1, [2, 3]], [[4, 5], 6, 7, [8, 9]]], 1);
    // [1, [2, 3], [[4, 5], 6, 7, [8, 9]]]

    Install

    npm i just-flatten-it

    DownloadsWeekly Downloads

    7,535

    Version

    3.1.0

    License

    MIT

    Unpacked Size

    2.7 kB

    Total Files

    4

    Last publish

    Collaborators

    • avatar