{"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","tarball":"http://registry-npm.ywwl.com/reduce-flatten/download/reduce-flatten-1.0.0.tgz","integrity":"sha512-XO0YsVl75QJ/EuzjRk6NM821ycVXMbOqqO8Moa4xD0TJ4YUvkOttLV6Ty6oCrlpCt9OQmAC+bgero+LP1GSAfA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDcDl23W8tHXzrpbr6qShVDwsQAXwZRX6QuF1Nf7/fsAAIgeDsEVvBhrY5OtPSYoMCHmVuuFSjtoQ1uZsHjNWpIK+4="}],"size":1922,"noattachment":false,"key":"/reduce-flatten/-/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":{},"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":1456423059269,"_cnpm_publish_time":1456423059269,"dist-tags":{"latest":"3.0.1"}}