# utils-flatten

> flatten() utility function

Latest version **1.0.0** (published 2013-07-11) · 0 weekly downloads

## Install

```sh
npm install utils-flatten
pnpm add utils-flatten
yarn add utils-flatten
bun add utils-flatten
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2013-07-11 |
| First published | 2013-07-11 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.4.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Jared Hanson |
| Maintainers | jaredhanson |
| Keywords | util, array |

## Links

- npm: https://www.npmjs.com/package/utils-flatten
- Repository: https://github.com/jaredhanson/utils-flatten
- Issues: http://github.com/jaredhanson/utils-flatten/issues
- npm.io page: https://npm.io/package/utils-flatten

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2013-07-11

## README

# utils-flatten

Flattens an array.

## Install

    $ npm install utils-flatten

## Usage

```javascript
var arr = ['one', ['two', ['three', 'four'], 'five']];

flatten(arr);
// => ['one', 'two', 'three', 'four', 'five']
```

## Tests

    $ npm install
    $ npm test

[![Build Status](https://secure.travis-ci.org/jaredhanson/utils-flatten.png)](http://travis-ci.org/jaredhanson/utils-flatten)

## Credits

  - [Jared Hanson](http://github.com/jaredhanson)

## License

[The MIT License](http://opensource.org/licenses/MIT)

Copyright (c) 2013 Jared Hanson <[http://jaredhanson.net/](http://jaredhanson.net/)>

---
_Source: https://npm.io/package/utils-flatten · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
