flatten-deep ![Build Status](https://camo.githubusercontent.com/17864f8e6bcfd71e4bea6482fb78ab949a5252c2287a661e330f5108621f1caa/68747470733a2f2f7472617669732d63692e6f72672f6d6172656b73757363616b2f666c617474656e2d646565702d6a732e7376673f6272616e63683d6d6173746572)
ƛ Flattens arbitrarily nested arrays.
Installation
# NPM
npm install github:mareksuscak/flatten-deep-js
# Yarn
yarn add https://github.com/mareksuscak/flatten-deep-js
How To Use
import flattenDeep from 'flattenDeep'
// or
// var flattenDeep = require('flatten-deep')
flattenDeep([1, [2, [3]], 4]) // -> [1, 2, 3, 4]
Running Tests
Interactive mode
// NPM
npm test -- --watch
// Yarn
yarn test -- --watch
Single run mode:
// NPM
npm test
// Yarn
yarn test
Known Issues
- No browser environment tests (e.g. karma)
- No code coverage monitoring (Jest supports --coverage flag + junit reporter necessary)
- Missing benchmarks (benchmark.js)
- No eslint checks
- Not using flow for static type checks
Contributing
See our Contribution Guidelines.
License
See the License.