{"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","tarball":"http://registry-npm.ywwl.com/reduce-flatten/download/reduce-flatten-1.0.1.tgz","integrity":"sha512-j5WfFJfc9CoXv/WbwVLHq74i/hdTUpy+iNC534LxczMRP67vJeK3V9JOdnL0N1cIRbn9mYhE2yVjvvKXDxvNXQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDjswyo138I2u6bUpkpfda4cHHj+XUdF3Gr3JZb0XRmKQIgdheTubnZUOYHWl0X4XKUc84qhFeDATodrR4t6ElaEQs="}],"size":1919,"noattachment":false,"key":"/reduce-flatten/-/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":{},"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","publish_time":1465110456619,"_cnpm_publish_time":1465110456619,"dist-tags":{"latest":"3.0.1"}}