{"name":"array-back","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"1.0.0","description":"Guarantees an array back","repository":{"type":"git","url":"git+https://github.com/75lb/array-back.git"},"license":"MIT","main":"./lib/array-back.js","keywords":["to","convert","return","array","arrayify"],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js"},"dependencies":{"typical":"^2.2.0"},"devDependencies":{"tape":"^4.0.0"},"gitHead":"9fbda4aecbedb07ce3a6591d3417707811887a42","bugs":{"url":"https://github.com/75lb/array-back/issues"},"homepage":"https://github.com/75lb/array-back#readme","_id":"array-back@1.0.0","_shasum":"0b82ce370ec122ac6f765d24aa03178fca37bb2f","_from":".","_npmVersion":"2.12.0","_nodeVersion":"0.12.5","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"0b82ce370ec122ac6f765d24aa03178fca37bb2f","tarball":"http://registry-npm.ywwl.com/array-back/download/array-back-1.0.0.tgz","integrity":"sha512-hw/Pl1kiDjCMZrp5kRbJnszfkXWhGvJVNBXRCwmq7fNXgppSdo7M1BDp3fgmIBk9aclLXsizcOYE8qgIyog/UQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE4TE10EnZ40hU8XdokANu8OBe8SyHqq5w7124fSdLugAiA9I04M/LMuRUVqUzToJpyc7ahKHYG2PulIizNgLnpINw=="}],"size":1854,"noattachment":false,"key":"/array-back/-/array-back-1.0.0.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"directories":{},"readme":"[![view on npm](https://badgen.net/npm/v/array-back)](https://www.npmjs.org/package/array-back)\n[![npm module downloads](https://badgen.net/npm/dt/array-back)](https://www.npmjs.org/package/array-back)\n[![Gihub repo dependents](https://badgen.net/github/dependents-repo/75lb/array-back)](https://github.com/75lb/array-back/network/dependents?dependent_type=REPOSITORY)\n[![Gihub package dependents](https://badgen.net/github/dependents-pkg/75lb/array-back)](https://github.com/75lb/array-back/network/dependents?dependent_type=PACKAGE)\n[![Node.js CI](https://github.com/75lb/array-back/actions/workflows/node.js.yml/badge.svg)](https://github.com/75lb/array-back/actions/workflows/node.js.yml)\n[![Coverage Status](https://coveralls.io/repos/github/75lb/array-back/badge.svg)](https://coveralls.io/github/75lb/array-back)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](https://github.com/feross/standard)\n\n<a name=\"module_array-back\"></a>\n\n## array-back\nTakes any input and guarantees an array back.\n\n- Converts array-like objects (e.g. `arguments`, `Set`) to a real array.\n- Converts `undefined` to an empty array.\n- Converts any another other, singular value (including `null`, objects and iterables other than `Set`) into an array containing that value.\n- Ignores input which is already an array.\n\n**Example**  \n```js\n> const arrayify = require('array-back')\n\n> arrayify(undefined)\n[]\n\n> arrayify(null)\n[ null ]\n\n> arrayify(0)\n[ 0 ]\n\n> arrayify([ 1, 2 ])\n[ 1, 2 ]\n\n> arrayify(new Set([ 1, 2 ]))\n[ 1, 2 ]\n\n> function f(){ return arrayify(arguments); }\n> f(1,2,3)\n[ 1, 2, 3 ]\n```\n<a name=\"exp_module_array-back--arrayify\"></a>\n\n### arrayify(input) ⇒ <code>Array</code> ⏏\n**Kind**: Exported function  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| input | <code>\\*</code> | The input value to convert to an array |\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('array-back')\n```\n\nWithin Node.js with ECMAScript Module support enabled:\n\n```js\nimport arrayify from 'array-back'\n```\n\nWithin an modern browser ECMAScript Module:\n\n```js\nimport arrayify from './node_modules/array-back/index.js'\n```\n\n* * *\n\n&copy; 2015-22 [Lloyd Brookes](https://github.com/75lb) \\<75pound@gmail.com\\>.\n\nIsomorphic test suite by [test-runner](https://github.com/test-runner-js/test-runner) and [web-runner](https://github.com/test-runner-js/web-runner). Documented by [jsdoc-to-markdown](https://github.com/jsdoc2md/jsdoc-to-markdown).\n","publish_time":1435787353100,"_cnpm_publish_time":1435787353100,"dist-tags":{"latest":"6.2.3"}}