Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/orlov-vo/flatten


https://github.com/orlov-vo/flatten

Last synced: 28 days ago
JSON representation

Awesome Lists containing this project

README

        

# Flatten

A simple implementation of function that make arrays flat.

## How to use

```js
import { flatten } from "flatten";

const flattenedArray = flatten([1, [2, 3], 4, [5, [6]]]); // => [1, 2, 3, 4, 5, 6]
```