{"_id":"array-to-map","_rev":"296506","name":"array-to-map","description":"Light utility to convert your [keys] to a {key:key} map","dist-tags":{"latest":"1.0.3"},"maintainers":[{"name":"ashubham","email":"ashubham@gmail.com"}],"time":{"modified":"2021-06-03T18:58:31.000Z","created":"2015-03-18T01:24:38.546Z","1.0.3":"2015-11-05T03:22:53.317Z","1.0.2":"2015-03-18T02:48:36.644Z","1.0.1":"2015-03-18T01:26:11.768Z","1.0.0":"2015-03-18T01:24:38.546Z"},"users":{},"author":{"name":"Ashish Shubham","email":"ashubham@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/ashubham/array-to-map.git"},"versions":{"1.0.3":{"name":"array-to-map","version":"1.0.3","description":"Light utility to convert your [keys] to a {key:key} map","main":"index.js","author":{"name":"Ashish Shubham","email":"ashubham@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/ashubham/array-to-map.git"},"homepage":"https://github.com/ashubham/array-to-map","keywords":["hashmap","map","array-to-map","array-to-object","object"],"license":"MIT","devDependencies":{"mocha":"^2.2.1"},"dependencies":{},"scripts":{"test":"mocha --recursive ./test"},"gitHead":"e3528e64a9d198291373b5bf30e01ef962fb8eb3","bugs":{"url":"https://github.com/ashubham/array-to-map/issues"},"_id":"array-to-map@1.0.3","_shasum":"3a1e2fe01955d0b4deeb17d68564e4c46ea1d3b8","_from":".","_npmVersion":"3.3.10","_nodeVersion":"0.10.37","_npmUser":{"name":"ashubham","email":"ashubham@gmail.com"},"maintainers":[{"name":"ashubham","email":"ashubham@gmail.com"}],"dist":{"shasum":"3a1e2fe01955d0b4deeb17d68564e4c46ea1d3b8","size":1911,"noattachment":false,"key":"/array-to-map/-/array-to-map-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/array-to-map/download/array-to-map-1.0.3.tgz"},"directories":{},"publish_time":1446693773317,"_cnpm_publish_time":1446693773317,"_hasShrinkwrap":false},"1.0.2":{"name":"array-to-map","version":"1.0.2","description":"Light utility to convert your [keys] to a {key:key} map","main":"index.js","author":{"name":"Ashish Shubham","email":"ashubham@gmail.com"},"repository":{"type":"git","url":"https://github.com/ashubham/array-to-map"},"homepage":"https://github.com/ashubham/array-to-map","keywords":["hashmap","map","array-to-map","array-to-object","object"],"license":"MIT","devDependencies":{"mocha":"^2.2.1"},"dependencies":{},"scripts":{"test":"mocha --recursive ./test"},"gitHead":"e3528e64a9d198291373b5bf30e01ef962fb8eb3","bugs":{"url":"https://github.com/ashubham/array-to-map/issues"},"_id":"array-to-map@1.0.2","_shasum":"3fafcb86d21edc3b7e335a3d4671fd02c0a896ee","_from":".","_npmVersion":"2.6.1","_nodeVersion":"0.12.0","_npmUser":{"name":"ashubham","email":"ashubham@gmail.com"},"maintainers":[{"name":"ashubham","email":"ashubham@gmail.com"}],"dist":{"shasum":"3fafcb86d21edc3b7e335a3d4671fd02c0a896ee","size":2679,"noattachment":false,"key":"/array-to-map/-/array-to-map-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/array-to-map/download/array-to-map-1.0.2.tgz"},"directories":{},"publish_time":1426646916644,"_cnpm_publish_time":1426646916644,"_hasShrinkwrap":false},"1.0.1":{"name":"array-to-map","version":"1.0.1","description":"Light utility to convert your [keys] to a {key:key} map","main":"index.js","author":{"name":"Ashish Shubham","email":"ashubham@gmail.com"},"repository":{"type":"git","url":"https://github.com/ashubham/array-to-map"},"homepage":"https://github.com/ashubham/array-to-map","keywords":["hashmap","map","array-to-map","array-to-object","object"],"license":"MIT","devDependencies":{"mocha":"^2.2.1"},"dependencies":{},"scripts":{"test":"mocha --recursive ./test"},"gitHead":"333308dedd7eb045eff98e8a4916f1ba24b9ff78","bugs":{"url":"https://github.com/ashubham/array-to-map/issues"},"_id":"array-to-map@1.0.1","_shasum":"7eb591c7b64b9f5cc7c52e0656031fb3d1143339","_from":".","_npmVersion":"2.6.1","_nodeVersion":"0.12.0","_npmUser":{"name":"ashubham","email":"ashubham@gmail.com"},"maintainers":[{"name":"ashubham","email":"ashubham@gmail.com"}],"dist":{"shasum":"7eb591c7b64b9f5cc7c52e0656031fb3d1143339","size":2275,"noattachment":false,"key":"/array-to-map/-/array-to-map-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/array-to-map/download/array-to-map-1.0.1.tgz"},"directories":{},"publish_time":1426641971768,"_cnpm_publish_time":1426641971768,"_hasShrinkwrap":false},"1.0.0":{"name":"array-to-map","version":"1.0.0","description":"Light utility to convert your [keys] to a {key:key} map","main":"index.js","author":{"name":"Ashish Shubham","email":"ashubham@gmail.com"},"repository":{"type":"git","url":"https://github.com/ashubham/array-to-map"},"homepage":"https://github.com/ashubham/array-to-map","keywords":["hashmap","map","array-to-map","array-to-object","object"],"license":"MIT","devDependencies":{"mocha":"^2.2.1"},"dependencies":{},"scripts":{"test":"mocha --recursive ./test"},"gitHead":"d82d76fc1046f8a29d5cdde19f52534f68d8a29e","bugs":{"url":"https://github.com/ashubham/array-to-map/issues"},"_id":"array-to-map@1.0.0","_shasum":"3307f9fda091ae7eda9a899e5716600fe9d0f069","_from":".","_npmVersion":"2.6.1","_nodeVersion":"0.12.0","_npmUser":{"name":"ashubham","email":"ashubham@gmail.com"},"maintainers":[{"name":"ashubham","email":"ashubham@gmail.com"}],"dist":{"shasum":"3307f9fda091ae7eda9a899e5716600fe9d0f069","size":2282,"noattachment":false,"key":"/array-to-map/-/array-to-map-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/array-to-map/download/array-to-map-1.0.0.tgz"},"directories":{},"publish_time":1426641878546,"_cnpm_publish_time":1426641878546,"_hasShrinkwrap":false}},"readme":"# array-to-map\n\n<a href=\"https://travis-ci.org/ashubham/array-to-map\">\n\t<img src=\"https://api.travis-ci.org/ashubham/array-to-map.svg?branch=master\"/>\n</a>\n\nLight utility to convert your [keys] to a {key:key} map\n\n\n### Usage\n\n```javascript\nvar getMap = require('array-to-map');\n\nvar map = getMap([1, 2, \"abc\"]);\n// {'1':1, '2':2, 'abc':'abc'}\n```\nThe best use case for this tool is when a conversion from an array to a map is needed for efficient membership checking.\n\n\n### Gotchas\n\nUnserializable elements like `objects` and `functions` are ignored by this tool.\n\nSo something like,\n```javascript\nvar getMap = require('array-to-map');\n\nvar map = getMap([1, 2, \"abc\", {key:123}, function () {}]);\n// Still {'1':1, '2':2, 'abc':'abc'}\n```\n\n","_attachments":{},"homepage":"https://github.com/ashubham/array-to-map","bugs":{"url":"https://github.com/ashubham/array-to-map/issues"},"license":"MIT"}