{"name":"array-back","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"1.0.4","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.12.0"},"scripts":{"test":"test-runner test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js  > README.md; echo"},"dependencies":{"typical":"^2.6.0"},"devDependencies":{"core-assert":"^0.2.1","jsdoc-to-markdown":"^2.0.1","test-runner":"^0.3.0"},"gitHead":"db2cc93b5a20e630e583b491b16277fec80a2be5","bugs":{"url":"https://github.com/75lb/array-back/issues"},"homepage":"https://github.com/75lb/array-back#readme","_id":"array-back@1.0.4","_shasum":"644ba7f095f7ffcf7c43b5f0dc39d3c1f03c063b","_from":".","_npmVersion":"3.10.9","_nodeVersion":"7.2.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"644ba7f095f7ffcf7c43b5f0dc39d3c1f03c063b","tarball":"http://registry-npm.ywwl.com/array-back/download/array-back-1.0.4.tgz","integrity":"sha512-1WxbZvrmyhkNoeYcizokbmh5oiOCIfyvGtcqbK3Ls1v1fKcquzxnQSceOx6tzq7jmai2kFLWIpGND2cLhH6TPw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCbzvpwWhrdVccfLLbVgxPPmN4Ei0jh0yEnG1NILkfawgIgVQDoiwOtyzaiaUvqtPuXNZ899iWvcmUTE/1NowjLKgw="}],"size":2429,"noattachment":false,"key":"/array-back/-/array-back-1.0.4.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/array-back-1.0.4.tgz_1480863790635_0.6143298214301467"},"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":1480863792523,"_cnpm_publish_time":1480863792523,"dist-tags":{"latest":"6.2.3"}}