{"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":{"integrity":"sha512-EJ4UNY/U1t2P/2k6oqotuX2Cc3T6nxJwsM0N0asT7dhrtH1ltUxDn4NalSYmPE2rCkVpcf/X6R0wDwcFpzhd4w==","shasum":"734fd84e65f375d7ca4465c69798c25c9d10ae27","tarball":"http://registry-npm.ywwl.com/reduce-flatten/download/reduce-flatten-2.0.0.tgz","fileCount":7,"unpackedSize":4242,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbFZsSCRA9TVsSAnZWagAArEMP/RTB0PX8z7STH80Hr0Dg\npkqkkjXaob8CdPNBbm53s0j17jSyF+uCUnC5kdm4poL0IWAr/BQTUCLDkBFs\nB24RMbP7bAyZysB0Sge4TMnNJxbHfrwQjQkXfMOdqMOzVD3GEvVvx2GkTJe6\n7m9Kgt0y3Ke1csbTjqX1vfPzH09Cu0QjQ8fUm5W3BnuoRRNIRgH9UUDrPIAs\nyEfZDyA3XdAB6KxhQCUurpReCIL0wohxc8hjedL5a7+13hXKaENjJUG3ACk9\nW4NnnpLoxyPTVghBbGS7gvbLkmGXhL8P06X0LhrmYrB63zf7Xhoa6IxdlAGX\neoX/D+Mabu2WSOLhnQH0qHmaNiE8XQm8vdv4fBBJ/Hk9bRBohsYGwoya5/Vp\n586Cz/QObCDqSFQAUOLeRud4OBJo+lRdJNI6st0ojpC1mLvqWb6A/1ltXmVI\naVB17kk3yBaC0eP+OV2/+0UlFhGTNL6AKpyoAygxoQaJjNYuIXOPzicS5NNj\ndkPtCHU/GojlyrdeBgjIeCaMcVyI6/VREPiLMw+t4SsfFtUFbOBNbV6kLG1O\nJfPPYO4ck6PFvOqHodBOWLqgzOkWBrT/+fmuFlVYQyAJIZcqfcwK2wzMxlTJ\nB4Y07AL/LjFVwj5j5kBvm7TCIcEfBnrWz9IdR0B/BOEr2w54OTReXptKOPbG\nFXCX\r\n=t1yJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFl6GFcdlDd0nMhaSQyCL3wa5JX1HG8v37N/0XrJMtXvAiEAmjAaNSe+YQUffHQrpMlNWa8Y38e3hxD3dmqpx55ak6E="}],"size":1886,"noattachment":false,"key":"/reduce-flatten/-/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,"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":1528142609891,"_cnpm_publish_time":1528142609891,"dist-tags":{"latest":"3.0.1"}}