Dia antes primera install
This commit is contained in:
8
node_modules/reduce-flatten/.travis.yml
generated
vendored
Normal file
8
node_modules/reduce-flatten/.travis.yml
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
language: node_js
|
||||
node_js:
|
||||
- '0.10'
|
||||
- 0.12
|
||||
- iojs
|
||||
- 4
|
||||
- 5
|
||||
- 6
|
||||
21
node_modules/reduce-flatten/LICENSE
generated
vendored
Normal file
21
node_modules/reduce-flatten/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2016 Lloyd Brookes <75pound@gmail.com>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
36
node_modules/reduce-flatten/README.md
generated
vendored
Normal file
36
node_modules/reduce-flatten/README.md
generated
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
[](https://www.npmjs.org/package/reduce-flatten)
|
||||
[](https://www.npmjs.org/package/reduce-flatten)
|
||||
[](https://travis-ci.org/75lb/reduce-flatten)
|
||||
[](https://david-dm.org/75lb/reduce-flatten)
|
||||
[](https://github.com/feross/standard)
|
||||
|
||||
<a name="module_reduce-flatten"></a>
|
||||
## reduce-flatten
|
||||
Flatten an array into the supplied array.
|
||||
|
||||
|
||||
**Example**
|
||||
```js
|
||||
var flatten = require('reduce-flatten')
|
||||
```
|
||||
|
||||
|
||||
<a name="exp_module_reduce-flatten--flatten"></a>
|
||||
### flatten() ⏏
|
||||
**Kind**: Exported function
|
||||
|
||||
|
||||
|
||||
**Example**
|
||||
```js
|
||||
> numbers = [ 1, 2, [ 3, 4 ], 5 ]
|
||||
> numbers.reduce(flatten, [])
|
||||
[ 1, 2, 3, 4, 5 ]
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
* * *
|
||||
|
||||
© 2016 Lloyd Brookes <75pound@gmail.com>. Documented by [jsdoc-to-markdown](https://github.com/jsdoc2md/jsdoc-to-markdown).
|
||||
11
node_modules/reduce-flatten/jsdoc2md/README.md
generated
vendored
Normal file
11
node_modules/reduce-flatten/jsdoc2md/README.md
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
[](https://www.npmjs.org/package/reduce-flatten)
|
||||
[](https://www.npmjs.org/package/reduce-flatten)
|
||||
[](https://travis-ci.org/75lb/reduce-flatten)
|
||||
[](https://david-dm.org/75lb/reduce-flatten)
|
||||
[](https://github.com/feross/standard)
|
||||
|
||||
${docs.renderAll()}
|
||||
|
||||
* * *
|
||||
|
||||
© 2016 Lloyd Brookes \<75pound@gmail.com\>. Documented by [jsdoc-to-markdown](https://github.com/jsdoc2md/jsdoc-to-markdown).
|
||||
21
node_modules/reduce-flatten/lib/reduce-flatten.js
generated
vendored
Normal file
21
node_modules/reduce-flatten/lib/reduce-flatten.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
'use strict'
|
||||
|
||||
/**
|
||||
* Flatten an array into the supplied array.
|
||||
*
|
||||
* @module reduce-flatten
|
||||
* @example
|
||||
* var flatten = require('reduce-flatten')
|
||||
*/
|
||||
module.exports = flatten
|
||||
|
||||
/**
|
||||
* @alias module:reduce-flatten
|
||||
* @example
|
||||
* > numbers = [ 1, 2, [ 3, 4 ], 5 ]
|
||||
* > numbers.reduce(flatten, [])
|
||||
* [ 1, 2, 3, 4, 5 ]
|
||||
*/
|
||||
function flatten (prev, curr) {
|
||||
return prev.concat(curr)
|
||||
}
|
||||
24
node_modules/reduce-flatten/package.json
generated
vendored
Normal file
24
node_modules/reduce-flatten/package.json
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"name": "reduce-flatten",
|
||||
"author": "Lloyd Brookes <75pound@gmail.com>",
|
||||
"version": "1.0.1",
|
||||
"description": "Flatten an array into the supplied array.",
|
||||
"repository": "https://github.com/75lb/reduce-flatten.git",
|
||||
"license": "MIT",
|
||||
"main": "./lib/reduce-flatten.js",
|
||||
"keywords": [
|
||||
"array",
|
||||
"reduce",
|
||||
"flatten"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "tape test/*.js",
|
||||
"docs": "jsdoc2md2 -t jsdoc2md/README.md lib/*.js > README.md; echo"
|
||||
},
|
||||
"devDependencies": {
|
||||
"tape": "^4.5.1"
|
||||
}
|
||||
}
|
||||
9
node_modules/reduce-flatten/test/test.js
generated
vendored
Normal file
9
node_modules/reduce-flatten/test/test.js
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
var test = require('tape')
|
||||
var flatten = require('../')
|
||||
|
||||
test('flatten', function (t) {
|
||||
var numbers = [ 1, 2, [ 3, 4 ], 5 ]
|
||||
var result = numbers.reduce(flatten, [])
|
||||
t.deepEqual(result, [ 1, 2, 3, 4, 5 ])
|
||||
t.end()
|
||||
})
|
||||
Reference in New Issue
Block a user