https://github.com/ivoputzer/m.flatten
m(icro)flatten is a simple array flatten implementation written in es6+
https://github.com/ivoputzer/m.flatten
node node-module
Last synced: about 1 month ago
JSON representation
m(icro)flatten is a simple array flatten implementation written in es6+
- Host: GitHub
- URL: https://github.com/ivoputzer/m.flatten
- Owner: ivoputzer
- License: mit
- Created: 2018-07-05T18:28:18.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-02-28T13:27:24.000Z (over 7 years ago)
- Last Synced: 2025-09-11T00:33:28.947Z (9 months ago)
- Topics: node, node-module
- Language: JavaScript
- Homepage: https://ivoputzer.github.io/m.flatten
- Size: 95.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Contributing: .github/contributing.md
- License: license.md
- Code of conduct: .github/code_of_conduct.md
Awesome Lists containing this project
README
m.flatten
===
**[m(icro)](https://github.com/ivoputzer/m.cro#readme)[flatten](https://github.com/ivoputzer/m.flatten) is a simple array flatten implementation written in es6+**
[](https://travis-ci.org/ivoputzer/m.flatten)
[](package.json)
[](https://coveralls.io/github/ivoputzer/m.flatten?branch=master)
[](http://standardjs.com/)
[](https://nodejs.org/docs/v6.0.0/api)
[](https://www.npmjs.com/package/m.flatten)
[](https://spdx.org/licenses/MIT)
[](https://bundlephobia.com/scan-results?packages=m.flatten)
[](https://www.npmjs.com/package/m.flatten)
## install
```sh
npm install m.flatten
```
## usage
```js
const {flatten} = require('m.flatten')
flatten(['a', [ 'b', 'c' ]]) // [ 'a', 'b', 'c' ]
```