{"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":{"integrity":"sha512-eczl8wAYBxJ6Egl6I1ECIF+8z6sHu+KE7BzaEDZTpPXKXfy9SUDQlVYwkRcNTjJLC3Iakxbhss50KuT/R6SYfg==","shasum":"da477d68453fd9510f9a5fbef86e0fa04b4fd315","tarball":"http://registry-npm.ywwl.com/reduce-flatten/download/reduce-flatten-3.0.0.tgz","fileCount":6,"unpackedSize":6252,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkKNPCRA9TVsSAnZWagAANC4P/3vUilHaYJJIbbAfC3Qs\nwqi588JM7gsoyHSGf0/Rusj4uljVPu1O+oFKL4Nx1QohbMB8g7Yt5koWTHMp\n588gn3wOUwbvkOezzL4OY2UIf6e7iCIEVBioK0j8a6sYs+4PmYDR54O10l1n\nzEDSq0i7k4wnbP36ijoah4dBRypclsWgKXUxj+o/jz6JVZ8qxhrf4EmSExsa\ncdWqIYdzqHw0q90d1ps/aoAC9nxbxfSWMrbbXYqxLerpSgnn6ue5WqxXpYDb\n+UIYkbARDU9r/U5Jhv6muO8iy4HWF8PVjF8ccYN6cZUAx3cBHXvNymD3h5Lh\nIqKZh0DGIuWg+OL3D8wm+lgQzMeEdQeQSD/S8WZNV9FQ7yECx53i6tb2GDzO\nXm8FYsRRc5cYEScRFC+bewz0xM1sgV/tDibHEl501S3Hh7VtVwwF+oziz6pk\ngnL7dG+CR7kuQBCsIRapgxTwAcHTO+EcFG+pRNbnCpDSVq1ane8tpWnEs4Ge\n7J4P0Z6lBaQKwFqkBZm4q+mNHLZ/tJrfR/aCOpxeVG5i98GkwcDHnPPCSs45\nnedsqs/oJrQQ8iSG3/rYZv2m0du4G1FWz/knEe1VQ2Bs/co3lM50FvVxaij4\nrN2TLsTgAKQ9pC3VqZyXT/B0y5ZOKaVKXTebVLlMJgsj+5pL6dfzfPUGTAdV\nTaE7\r\n=GpLL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDIAx18MS0OTvUbsbI62/DVTtyhJ8MZ0MvVLTuwebJ9EQIgKxK6tmqldGjGbKPN6faKzJwzUMYr/7fYy7glovqJaao="}],"size":2311,"noattachment":false,"key":"/reduce-flatten/-/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,"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":1569760079139,"_cnpm_publish_time":1569760079139,"dist-tags":{"latest":"3.0.1"}}