Skip to content
This repository was archived by the owner on Feb 20, 2019. It is now read-only.
This repository was archived by the owner on Feb 20, 2019. It is now read-only.

Make flatten deep flatten #6

@silvestertomato

Description

@silvestertomato

Right now:

const array = [1, 2, [3, 4, [5, 6], 7], 8]
flatten(array) // [1, 2, 3, 4, [5, 6], 7, 8]

What I want

const array = [1, 2, [3, 4, [5, 6], 7], 8]
flatten(array) // [1, 2, 3, 4, 5, 6, 7, 8]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions