Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/orlov-vo/flatten
https://github.com/orlov-vo/flatten
Last synced: 28 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/orlov-vo/flatten
- Owner: orlov-vo
- License: mit
- Created: 2019-11-21T06:47:11.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T01:22:14.000Z (almost 2 years ago)
- Last Synced: 2023-03-22T20:26:08.380Z (almost 2 years ago)
- Language: TypeScript
- Size: 578 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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]
```