{"_id":"reduce-flatten","_rev":"51102","name":"reduce-flatten","description":"Isomorphic map-reduce function to flatten an array into the supplied array","dist-tags":{"latest":"3.0.1"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"time":{"modified":"2021-06-03T10:15:36.000Z","created":"2016-02-25T17:57:39.269Z","3.0.1":"2021-05-19T09:31:17.218Z","3.0.0":"2019-09-29T12:27:59.139Z","2.0.0":"2018-06-04T20:03:29.891Z","1.0.1":"2016-06-05T07:07:36.619Z","1.0.0":"2016-02-25T17:57:39.269Z"},"users":{"vidhill":true},"author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/75lb/reduce-flatten.git"},"versions":{"3.0.1":{"name":"reduce-flatten","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"3.0.1","description":"Isomorphic map-reduce function to flatten an array into the supplied array","repository":{"type":"git","url":"git+https://github.com/75lb/reduce-flatten.git"},"license":"MIT","main":"dist/index.js","module":"index.mjs","keywords":["array","reduce","flatten"],"engines":{"node":">=8"},"scripts":{"test":"npm run dist && test-runner test.js","docs":"jsdoc2md -c jsdoc.conf -t README.hbs index.mjs > README.md","dist":"rollup -f umd -n flatten -o dist/index.js index.mjs"},"devDependencies":{"jsdoc-to-markdown":"^5.0.1","rollup":"^1.22.0","test-runner":"^0.6.0"},"standard":{"ignore":["dist"]},"gitHead":"4d28b1e272b7de5f3155d6d2b3c7f75e356f1be9","bugs":{"url":"https://github.com/75lb/reduce-flatten/issues"},"homepage":"https://github.com/75lb/reduce-flatten#readme","_id":"reduce-flatten@3.0.1","_nodeVersion":"16.1.0","_npmVersion":"7.11.2","dist":{"shasum":"3db6b48ced1f4dbe4f4f5e31e422aa9ff0cd21ba","size":2339,"noattachment":false,"key":"/reduce-flatten/-/reduce-flatten-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/reduce-flatten/download/reduce-flatten-3.0.1.tgz"},"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"directories":{},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/reduce-flatten_3.0.1_1621416677033_0.6333732361674338"},"_hasShrinkwrap":false,"publish_time":1621416677218,"_cnpm_publish_time":1621416677218},"3.0.0":{"name":"reduce-flatten","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"3.0.0","description":"Isomorphic map-reduce function to flatten an array into the supplied array","repository":{"type":"git","url":"git+https://github.com/75lb/reduce-flatten.git"},"license":"MIT","main":"dist/index.js","module":"index.mjs","keywords":["array","reduce","flatten"],"engines":{"node":">=8"},"scripts":{"test":"npm run dist && test-runner test.js","docs":"jsdoc2md -c jsdoc.conf -t README.hbs index.mjs > README.md","dist":"rollup -f umd -n flatten -o dist/index.js index.mjs"},"devDependencies":{"jsdoc-to-markdown":"^5.0.1","rollup":"^1.22.0","test-runner":"^0.6.0"},"standard":{"ignore":["dist"]},"gitHead":"f232c73e4eb3bbbb36951029e30fff893f2582cc","bugs":{"url":"https://github.com/75lb/reduce-flatten/issues"},"homepage":"https://github.com/75lb/reduce-flatten#readme","_id":"reduce-flatten@3.0.0","_nodeVersion":"12.10.0","_npmVersion":"6.11.3","dist":{"shasum":"da477d68453fd9510f9a5fbef86e0fa04b4fd315","size":2311,"noattachment":false,"key":"/reduce-flatten/-/reduce-flatten-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/reduce-flatten/download/reduce-flatten-3.0.0.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/reduce-flatten_3.0.0_1569760078996_0.7131171744779794"},"_hasShrinkwrap":false,"publish_time":1569760079139,"_cnpm_publish_time":1569760079139},"2.0.0":{"name":"reduce-flatten","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"2.0.0","description":"Flatten an array into the supplied array.","repository":{"type":"git","url":"git+https://github.com/75lb/reduce-flatten.git"},"license":"MIT","keywords":["array","reduce","flatten"],"engines":{"node":">=6"},"scripts":{"test":"test-runner test.js","docs":"jsdoc2md -t README.hbs index.js > README.md; echo"},"devDependencies":{"jsdoc-to-markdown":"^4.0.1","test-runner":"^0.5.0"},"gitHead":"a923d0953a7f8e09ef2fca525de320cb4729158f","bugs":{"url":"https://github.com/75lb/reduce-flatten/issues"},"homepage":"https://github.com/75lb/reduce-flatten#readme","_id":"reduce-flatten@2.0.0","_npmVersion":"6.1.0","_nodeVersion":"10.3.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"734fd84e65f375d7ca4465c69798c25c9d10ae27","size":1886,"noattachment":false,"key":"/reduce-flatten/-/reduce-flatten-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/reduce-flatten/download/reduce-flatten-2.0.0.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/reduce-flatten_2.0.0_1528142609800_0.6711687818630816"},"_hasShrinkwrap":false,"publish_time":1528142609891,"_cnpm_publish_time":1528142609891},"1.0.1":{"name":"reduce-flatten","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"1.0.1","description":"Flatten an array into the supplied array.","repository":{"type":"git","url":"git+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"},"gitHead":"dce82589291f8f779c9c55e6c5d51b9503055e65","bugs":{"url":"https://github.com/75lb/reduce-flatten/issues"},"homepage":"https://github.com/75lb/reduce-flatten#readme","_id":"reduce-flatten@1.0.1","_shasum":"258c78efd153ddf93cb561237f61184f3696e327","_from":".","_npmVersion":"3.9.3","_nodeVersion":"6.2.1","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"258c78efd153ddf93cb561237f61184f3696e327","size":1919,"noattachment":false,"key":"/reduce-flatten/-/reduce-flatten-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/reduce-flatten/download/reduce-flatten-1.0.1.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/reduce-flatten-1.0.1.tgz_1465110454802_0.2575185443274677"},"directories":{},"publish_time":1465110456619,"_cnpm_publish_time":1465110456619,"_hasShrinkwrap":false},"1.0.0":{"name":"reduce-flatten","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"1.0.0","description":"Flatten an array into the supplied array.","repository":{"type":"git","url":"git+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.4.0"},"gitHead":"145741951bd1a6d816c9cf53c35fe54a88d441ba","bugs":{"url":"https://github.com/75lb/reduce-flatten/issues"},"homepage":"https://github.com/75lb/reduce-flatten#readme","_id":"reduce-flatten@1.0.0","_shasum":"b0b8723576214a48f1898066bc401ae5303af72f","_from":".","_npmVersion":"3.7.5","_nodeVersion":"5.7.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"b0b8723576214a48f1898066bc401ae5303af72f","size":1922,"noattachment":false,"key":"/reduce-flatten/-/reduce-flatten-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/reduce-flatten/download/reduce-flatten-1.0.0.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-5-east.internal.npmjs.com","tmp":"tmp/reduce-flatten-1.0.0.tgz_1456423058152_0.16241120966151357"},"directories":{},"publish_time":1456423059269,"_cnpm_publish_time":1456423059269,"_hasShrinkwrap":false}},"readme":"[![view on npm](http://img.shields.io/npm/v/reduce-flatten.svg)](https://www.npmjs.org/package/reduce-flatten)\n[![npm module downloads](http://img.shields.io/npm/dt/reduce-flatten.svg)](https://www.npmjs.org/package/reduce-flatten)\n[![Build Status](https://travis-ci.org/75lb/reduce-flatten.svg?branch=master)](https://travis-ci.org/75lb/reduce-flatten)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](https://github.com/feross/standard)\n\n***DEPRECATED: Please use the [Array.prototype.flat()]() method built into ES2019 and above.***\n\n## reduce-flatten\nIsomorphic map-reduce function to flatten an array into the supplied array.\n\n**Example**  \n```js\nconst flatten = require('reduce-flatten')\n```\n<a name=\"exp_module_reduce-flatten--flatten\"></a>\n\n### flatten() ⏏\n**Kind**: Exported function  \n**Example**  \n```js\n> numbers = [ 1, 2, [ 3, 4 ], 5 ]\n> numbers.reduce(flatten, [])\n[ 1, 2, 3, 4, 5 ]\n```\n\n### Load anywhere\n\nThis library is compatible with Node.js, the Web and any style of module loader. It can be loaded anywhere, natively without transpilation.\n\nNode.js:\n\n```js\nconst arrayify = require('reduce-flatten')\n```\n\nWithin Node.js with ECMAScript Module support enabled:\n\n```js\nimport arrayify from 'reduce-flatten'\n```\n\nWithin an modern browser ECMAScript Module:\n\n```js\nimport arrayify from './node_modules/reduce-flatten/index.mjs'\n```\n\nOld browser (adds `window.flatten`):\n\n```html\n<script nomodule src=\"./node_modules/reduce-flatten/dist/index.js\"></script>\n```\n\n* * *\n\n&copy; 2016-19 Lloyd Brookes \\<75pound@gmail.com\\>. Documented by [jsdoc-to-markdown](https://github.com/jsdoc2md/jsdoc-to-markdown).\n","_attachments":{},"homepage":"https://github.com/75lb/reduce-flatten#readme","bugs":{"url":"https://github.com/75lb/reduce-flatten/issues"},"license":"MIT"}