arr-flatten
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "arr-flatten", | ||
"description": "Recursively flatten an array or arrays.", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"homepage": "https://github.com/jonschlinkert/arr-flatten", | ||
@@ -34,3 +34,5 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", | ||
"just-flatten-it": "^1.1.23", | ||
"lodash.flattendeep": "^4.4.0", | ||
"m_flattened": "^1.0.1", | ||
"mocha": "^3.2.0", | ||
"utils-flatten": "^1.0.0", | ||
@@ -59,7 +61,14 @@ "write": "^0.3.3" | ||
], | ||
"related": { | ||
"list": [ | ||
"arr-union", | ||
"array-unique", | ||
"array-each", | ||
"arr-filter" | ||
] | ||
}, | ||
"lint": { | ||
"reflinks": true | ||
} | ||
}, | ||
"dependencies": {} | ||
} | ||
} |
@@ -36,27 +36,2 @@ # arr-flatten [![NPM version](https://img.shields.io/npm/v/arr-flatten.svg?style=flat)](https://www.npmjs.com/package/arr-flatten) [![NPM monthly downloads](https://img.shields.io/npm/dm/arr-flatten.svg?style=flat)](https://npmjs.org/package/arr-flatten) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/arr-flatten.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/arr-flatten) [![Windows Build Status](https://img.shields.io/appveyor/ci/jonschlinkert/arr-flatten.svg?style=flat&label=AppVeyor)](https://ci.appveyor.com/project/jonschlinkert/arr-flatten) | ||
## Benchmarks | ||
This library versus [array-flatten](https://github.com/blakeembrey/array-flatten), on April 14, 2017: | ||
``` | ||
#1: large.js | ||
arr-flatten.js x 487,030 ops/sec ±0.67% (92 runs sampled) | ||
array-flatten.js x 347,020 ops/sec ±0.57% (98 runs sampled) | ||
#2: medium.js | ||
arr-flatten.js x 1,914,516 ops/sec ±0.76% (94 runs sampled) | ||
array-flatten.js x 1,391,661 ops/sec ±0.63% (96 runs sampled) | ||
#3: small.js | ||
arr-flatten.js x 5,158,980 ops/sec ±0.85% (94 runs sampled) | ||
array-flatten.js x 3,683,173 ops/sec ±0.79% (97 runs sampled) | ||
``` | ||
**Run the benchmarks** | ||
```bash | ||
$ npm run benchmarks | ||
``` | ||
## Why another flatten utility? | ||
@@ -68,2 +43,9 @@ | ||
### Related projects | ||
* [arr-filter](https://www.npmjs.com/package/arr-filter): Faster alternative to javascript's native filter method. | [homepage](https://github.com/jonschlinkert/arr-filter "Faster alternative to javascript's native filter method.") | ||
* [arr-union](https://www.npmjs.com/package/arr-union): Combines a list of arrays, returning a single array with unique values, using strict equality… [more](https://github.com/jonschlinkert/arr-union) | [homepage](https://github.com/jonschlinkert/arr-union "Combines a list of arrays, returning a single array with unique values, using strict equality for comparisons.") | ||
* [array-each](https://www.npmjs.com/package/array-each): Loop over each item in an array and call the given function on every element. | [homepage](https://github.com/jonschlinkert/array-each "Loop over each item in an array and call the given function on every element.") | ||
* [array-unique](https://www.npmjs.com/package/array-unique): Remove duplicate values from an array. Fastest ES5 implementation. | [homepage](https://github.com/jonschlinkert/array-unique "Remove duplicate values from an array. Fastest ES5 implementation.") | ||
### Contributing | ||
@@ -105,2 +87,2 @@ | ||
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.5.0, on April 14, 2017._ | ||
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.5.0, on April 16, 2017._ |
6596
16
85