https://github.com/halfzebra/array-flatten
Array flatten implementations in JavaScript
https://github.com/halfzebra/array-flatten
Last synced: 2 months ago
JSON representation
Array flatten implementations in JavaScript
- Host: GitHub
- URL: https://github.com/halfzebra/array-flatten
- Owner: halfzebra
- Created: 2016-06-01T20:56:37.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-08-15T11:28:46.000Z (almost 10 years ago)
- Last Synced: 2026-01-01T00:27:13.356Z (6 months ago)
- Language: JavaScript
- Homepage:
- Size: 10.7 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Array flatten implementations in JavaScript
[](https://travis-ci.org/halfzebra/array-flatten)
This repository is dedicated to different implementations
of array flatten in ES2015.
The motivation is to explore the differences between imperative
ant functional ways to implement array flattening algorithms.
Currently you might check out the following implementations:
- [for] [for] loop
- [Array.prototype.forEach] [forEach]
- [Array.prototype.map] [map]
- [Array.prototype.reduce] [reduce]
#### To run tests:
```sh
$ npm i
$ npm test
```
#### Checking test coverage:
It is possible to check test covarega with [isparta](https://github.com/douglasduteil/isparta)
```sh
$ npm run coverage
```
#### Todo:
- while loop
[for]:
[forEach]:
[map]:
[reduce]: