flow like the river
This commit is contained in:
commit
013fe673f3
42435 changed files with 5764238 additions and 0 deletions
34
VISUALIZACION/node_modules/flatten/README.md
generated
vendored
Executable file
34
VISUALIZACION/node_modules/flatten/README.md
generated
vendored
Executable file
|
|
@ -0,0 +1,34 @@
|
|||
# flatten
|
||||
|
||||
A tiny utility to flatten arrays of arrays (of arrays, etc., recursively, infinitely or to an optional depth) into a single array of non-arrays.
|
||||
|
||||
## example:
|
||||
|
||||
```js
|
||||
> var flatten = require('flatten');
|
||||
undefined
|
||||
> flatten([1, [2, 3], [4, 5, 6], [7, [8, 9]], 10])
|
||||
[ 1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5,
|
||||
6,
|
||||
7,
|
||||
8,
|
||||
9,
|
||||
10 ]
|
||||
> flatten([1, [2, [3, [4, [5]]]]], 2)
|
||||
[ 1,
|
||||
2,
|
||||
3,
|
||||
[ 4, [ 5 ] ] ]
|
||||
```
|
||||
|
||||
## install:
|
||||
|
||||
npm install flatten
|
||||
|
||||
## license:
|
||||
|
||||
MIT/X11.
|
||||
Loading…
Add table
Add a link
Reference in a new issue