Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/claudiopro/flattery
⛑ Flattens an array of nested arrays into a list of numbers
https://github.com/claudiopro/flattery
Last synced: about 1 month ago
JSON representation
⛑ Flattens an array of nested arrays into a list of numbers
- Host: GitHub
- URL: https://github.com/claudiopro/flattery
- Owner: claudiopro
- Created: 2015-11-09T16:09:22.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-13T15:22:45.000Z (about 8 years ago)
- Last Synced: 2024-10-03T06:48:14.475Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/claudiopro/flattery.svg?branch=master)](https://travis-ci.org/claudiopro/flattery)
# flattery
Flattens an array of nested arrays into a list of scalar elements
# Instructions
Install via `npm`:
```bash
npm install flattery --save
```Use in your Node scripts like this:
```js
const flattery = require('flattery');var flattened = flattery([[1, 2, [3]], 4]); // -> [1, 2, 3, 4]
```# License
[MIT](http://opensource.org/licenses/MIT)
Copyright (c) Claudio Procida 2015-2016