{"_id":"map.groupby","_rev":"6-da8510d449ad4e7a45fe99fe7a1bb829","name":"map.groupby","dist-tags":{"latest":"1.0.5"},"versions":{"1.0.0":{"name":"map.groupby","version":"1.0.0","keywords":["ecmascript","javascript","polyfill","shim","es-shim API","array","Map","group","groupBy"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"license":"MIT","_id":"map.groupby@1.0.0","maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"}],"homepage":"https://github.com/es-shims/Map.groupBy#readme","bugs":{"url":"https://github.com/es-shims/Map.groupBy/issues"},"dist":{"shasum":"47790f8773fa5bbb70f7bf9fa100b6d94844b34b","tarball":"https://registry.npmjs.org/map.groupby/-/map.groupby-1.0.0.tgz","fileCount":21,"integrity":"sha512-vRuupcgzpvw3qFd1V00Ma6hlNtFduw0ufrMhN9c1IC9Kv5LfrCq3gmrsZnw37eWDJ1/y2xRdXHAbjYmgr9F9iA==","signatures":[{"sig":"MEUCIQCxWi14+x+E2SWsWcL3WyvF/L54KyS0cXq1+fEu8QCu5QIgMtwdFXddOKg7IB+/9bpydZYls2qzPWajLdkO6TmZgAM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20846},"main":"index.js","exports":{".":"./index.js","./auto":"./auto.js","./shim":"./shim.js","./polyfill":"./polyfill.js","./package.json":"./package.json","./implementation":"./implementation.js"},"gitHead":"b78d84c2b3824200423033609b4a695497a72603","scripts":{"lint":"eslint --ext=js,mjs .","test":"npm run tests-only","prepack":"npmignore --auto --commentLines=autogenerated","pretest":"npm run --silent lint","version":"auto-changelog && git add CHANGELOG.md","postlint":"es-shim-api --bound && evalmd README.md","posttest":"aud --production","prepublish":"not-in-publish || npm run prepublishOnly","tests-only":"nyc tape 'test/**/*.js'","postversion":"auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"","prepublishOnly":"safe-publish-latest"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"repository":{"url":"git+https://github.com/es-shims/Map.groupBy.git","type":"git"},"_npmVersion":"9.7.2","description":"An ESnext spec-compliant `Map.groupBy` shim/polyfill/replacement that works as far down as ES3.","directories":{},"_nodeVersion":"20.4.0","dependencies":{"es-map":"^1.0.4","call-bind":"^1.0.2","es-abstract":"^1.21.2","get-intrinsic":"^1.2.1","define-properties":"^1.2.0"},"publishConfig":{"ignore":[".github/workflows"]},"_hasShrinkwrap":false,"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","hideCredit":true,"unreleased":false,"commitLimit":false,"backfillLimit":false},"devDependencies":{"aud":"^2.0.3","nyc":"^10.3.2","tape":"^5.6.4","eslint":"=8.8.0","evalmd":"^0.0.19","for-each":"^0.3.3","npmignore":"^0.3.0","in-publish":"^2.0.1","@es-shims/api":"^2.4.2","auto-changelog":"^2.4.0","es-value-fixtures":"^1.4.2","safe-publish-latest":"^2.0.0","functions-have-names":"^1.2.3","@ljharb/eslint-config":"^21.1.0"},"_npmOperationalInternal":{"tmp":"tmp/map.groupby_1.0.0_1689093737602_0.0867994141453674","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"map.groupby","version":"1.0.1","keywords":["ecmascript","javascript","polyfill","shim","es-shim API","array","Map","group","groupBy"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"license":"MIT","_id":"map.groupby@1.0.1","maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"}],"homepage":"https://github.com/es-shims/Map.groupBy#readme","bugs":{"url":"https://github.com/es-shims/Map.groupBy/issues"},"dist":{"shasum":"8b9c05d95bff57a226af959e5f81d07d09eced28","tarball":"https://registry.npmjs.org/map.groupby/-/map.groupby-1.0.1.tgz","fileCount":18,"integrity":"sha512-nn0ySGUoqUdRHJcgdjWRyIjc2SjZNGSdeDxKntCi3NRK4xnuhvjJDLW+ZPp/HhRcwdz1XFLJCvMPG4ravAU4Gw==","signatures":[{"sig":"MEQCIDMB9R33oU+RJzV/mpqODnRN9XEVjAW1I4i7SAXKjDUVAiB4xSPIUU+W1Br/LJiyqlK+WHsobPsH0ytsnl3v3TjDgQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17411},"main":"index.js","exports":{".":"./index.js","./auto":"./auto.js","./shim":"./shim.js","./polyfill":"./polyfill.js","./package.json":"./package.json","./implementation":"./implementation.js"},"gitHead":"abedf2d9a13da8fe51c765232af098e596c9fb4e","scripts":{"lint":"eslint --ext=js,mjs .","test":"npm run tests-only","prepack":"npmignore --auto --commentLines=autogenerated","pretest":"npm run --silent lint","version":"auto-changelog && git add CHANGELOG.md","postlint":"es-shim-api --bound && evalmd README.md","posttest":"aud --production","prepublish":"not-in-publish || npm run prepublishOnly","tests-only":"nyc tape 'test/**/*.js'","postversion":"auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"","prepublishOnly":"safe-publish-latest"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"repository":{"url":"git+https://github.com/es-shims/Map.groupBy.git","type":"git"},"_npmVersion":"9.8.0","description":"An ESnext spec-compliant `Map.groupBy` shim/polyfill/replacement that works as far down as ES3.","directories":{},"_nodeVersion":"20.5.1","dependencies":{"es-map":"^1.0.4","call-bind":"^1.0.2","es-abstract":"^1.22.1","get-intrinsic":"^1.2.1","define-properties":"^1.2.0"},"publishConfig":{"ignore":[".github/workflows"]},"_hasShrinkwrap":false,"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","hideCredit":true,"unreleased":false,"commitLimit":false,"backfillLimit":false},"devDependencies":{"aud":"^2.0.3","nyc":"^10.3.2","tape":"^5.6.6","eslint":"=8.8.0","evalmd":"^0.0.19","for-each":"^0.3.3","npmignore":"^0.3.0","in-publish":"^2.0.1","@es-shims/api":"^2.4.2","auto-changelog":"^2.4.0","es-value-fixtures":"^1.4.2","safe-publish-latest":"^2.0.0","functions-have-names":"^1.2.3","@ljharb/eslint-config":"^21.1.0"},"_npmOperationalInternal":{"tmp":"tmp/map.groupby_1.0.1_1693241614817_0.9448733168396501","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"map.groupby","version":"1.0.2","keywords":["ecmascript","javascript","polyfill","shim","es-shim API","array","Map","group","groupBy"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"license":"MIT","_id":"map.groupby@1.0.2","maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"}],"homepage":"https://github.com/es-shims/Map.groupBy#readme","bugs":{"url":"https://github.com/es-shims/Map.groupBy/issues"},"dist":{"shasum":"42509a82f134905f27c102c43a1c3bd8fefaa0ff","tarball":"https://registry.npmjs.org/map.groupby/-/map.groupby-1.0.2.tgz","fileCount":18,"integrity":"sha512-jjePiRz8YMcFPiXS+L29Rwjd/jFCCzddFJ2LfyDN/u476fAp5JLzOaU2z58hjsBpnR3qCgluV5VCS4SdmZhz9w==","signatures":[{"sig":"MEUCIQDu4G0HqOBOyNaqLyKiGco+Kxx0bw3xlvs5Mc4kBbuTgQIgf+Rzh1K562BJTsmhTEGN67ttaynbpZN/ZeLGvVn6N+0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18173},"main":"index.js","exports":{".":"./index.js","./auto":"./auto.js","./shim":"./shim.js","./polyfill":"./polyfill.js","./package.json":"./package.json","./implementation":"./implementation.js"},"gitHead":"d1b5339f5ad541043ea2d9391bc8b90272f5a3e8","scripts":{"lint":"eslint --ext=js,mjs .","test":"npm run tests-only","prepack":"npmignore --auto --commentLines=autogenerated","pretest":"npm run --silent lint","version":"auto-changelog && git add CHANGELOG.md","postlint":"es-shim-api --bound && evalmd README.md","posttest":"aud --production","prepublish":"not-in-publish || npm run prepublishOnly","tests-only":"nyc tape 'test/**/*.js'","postversion":"auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"","prepublishOnly":"safe-publish-latest"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"repository":{"url":"git+https://github.com/es-shims/Map.groupBy.git","type":"git"},"_npmVersion":"10.2.4","description":"An ESnext spec-compliant `Map.groupBy` shim/polyfill/replacement that works as far down as ES3.","directories":{},"_nodeVersion":"21.6.0","dependencies":{"es-map":"^1.0.5","call-bind":"^1.0.5","es-errors":"^1.0.0","es-abstract":"^1.22.3","get-intrinsic":"^1.2.3","define-properties":"^1.2.1","array.prototype.filter":"^1.0.3"},"publishConfig":{"ignore":[".github/workflows"]},"_hasShrinkwrap":false,"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","hideCredit":true,"unreleased":false,"commitLimit":false,"backfillLimit":false},"devDependencies":{"aud":"^2.0.4","nyc":"^10.3.2","tape":"^5.7.4","eslint":"=8.8.0","evalmd":"^0.0.19","for-each":"^0.3.3","npmignore":"^0.3.1","in-publish":"^2.0.1","@es-shims/api":"^2.4.2","auto-changelog":"^2.4.0","es-value-fixtures":"^1.4.2","safe-publish-latest":"^2.0.0","functions-have-names":"^1.2.3","@ljharb/eslint-config":"^21.1.0"},"_npmOperationalInternal":{"tmp":"tmp/map.groupby_1.0.2_1707115734084_0.16942642605099478","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"map.groupby","version":"1.0.3","keywords":["ecmascript","javascript","polyfill","shim","es-shim API","array","Map","group","groupBy"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"license":"MIT","_id":"map.groupby@1.0.3","maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"}],"homepage":"https://github.com/es-shims/Map.groupBy#readme","bugs":{"url":"https://github.com/es-shims/Map.groupBy/issues"},"dist":{"shasum":"aa87ae942f3e8657abf6d65a997378913ecd6907","tarball":"https://registry.npmjs.org/map.groupby/-/map.groupby-1.0.3.tgz","fileCount":16,"integrity":"sha512-DqlyjJG2fOyDBTNi5M3Q5nu+pBILyENBSkgY37COfZ+Kpj/Q2d7twwheu3s7wW1rzuk8Ou5uKgTfgId6BE/aSw==","signatures":[{"sig":"MEYCIQCdl9+BC+kwnw2E5HJrUmV8kfiuivDibbaUdPzVN8lfIAIhAIYDkJNNgRdfZb0YGNdjK/lOnxLHcp14HGzUoN6i/6mG","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15571},"main":"index.js","engines":{"node":">= 0.4"},"exports":{".":"./index.js","./auto":"./auto.js","./shim":"./shim.js","./polyfill":"./polyfill.js","./package.json":"./package.json","./implementation":"./implementation.js"},"gitHead":"5c6e1efc7b378ec34e149a80d9fc8693c6c88d1d","scripts":{"lint":"eslint --ext=js,mjs .","test":"npm run tests-only","prepack":"npmignore --auto --commentLines=autogenerated","pretest":"npm run --silent lint","version":"auto-changelog && git add CHANGELOG.md","postlint":"es-shim-api --bound && evalmd README.md","posttest":"aud --production","prepublish":"not-in-publish || npm run prepublishOnly","tests-only":"nyc tape 'test/**/*.js'","postversion":"auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"","prepublishOnly":"safe-publish-latest"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"repository":{"url":"git+https://github.com/es-shims/Map.groupBy.git","type":"git"},"_npmVersion":"10.5.0","description":"An ESnext spec-compliant `Map.groupBy` shim/polyfill/replacement that works as far down as ES3.","directories":{},"_nodeVersion":"21.7.0","dependencies":{"es-map":"^1.0.5","call-bind":"^1.0.7","es-errors":"^1.3.0","es-abstract":"^1.23.2","get-intrinsic":"^1.2.4","define-properties":"^1.2.1","array.prototype.filter":"^1.0.3"},"publishConfig":{"ignore":[".github/workflows"]},"_hasShrinkwrap":false,"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","hideCredit":true,"unreleased":false,"commitLimit":false,"backfillLimit":false},"devDependencies":{"aud":"^2.0.4","nyc":"^10.3.2","tape":"^5.7.5","eslint":"=8.8.0","evalmd":"^0.0.19","for-each":"^0.3.3","npmignore":"^0.3.1","in-publish":"^2.0.1","@es-shims/api":"^2.4.2","auto-changelog":"^2.4.0","es-value-fixtures":"^1.4.2","safe-publish-latest":"^2.0.0","functions-have-names":"^1.2.3","@ljharb/eslint-config":"^21.1.0"},"_npmOperationalInternal":{"tmp":"tmp/map.groupby_1.0.3_1710741495990_0.7925431300267982","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"map.groupby","version":"1.0.4","keywords":["ecmascript","javascript","polyfill","shim","es-shim API","array","Map","group","groupBy"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"license":"MIT","_id":"map.groupby@1.0.4","maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"}],"homepage":"https://github.com/es-shims/Map.groupBy#readme","bugs":{"url":"https://github.com/es-shims/Map.groupBy/issues"},"dist":{"shasum":"ff210a67ca9a97d87dd63797d351279320ebe46d","tarball":"https://registry.npmjs.org/map.groupby/-/map.groupby-1.0.4.tgz","fileCount":16,"integrity":"sha512-QA4+QJ7UtUt7PWS8EuDSN+pNn4ZCU9tUaOGJEF9djJV0PPtJhcQi3hqkIVfQodlSPCjeWmAM4YR7XFXYAFeRnQ==","signatures":[{"sig":"MEYCIQDiiT6R+JYUsklHQ9akY/d0T5pjik3OBA/xNkBKYq6iGAIhAIhWCHjvnm7ft6xSYs794u9njypG88ng7X4uyZMlIUwp","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18033},"main":"index.js","engines":{"node":">= 0.4"},"exports":{".":"./index.js","./auto":"./auto.js","./shim":"./shim.js","./polyfill":"./polyfill.js","./package.json":"./package.json","./implementation":"./implementation.js"},"gitHead":"5a6f3b3b80348ff3985924be4055f314bb981756","scripts":{"lint":"eslint --ext=js,mjs .","test":"npm run tests-only","prepack":"npmignore --auto --commentLines=autogenerated","pretest":"npm run --silent lint","version":"auto-changelog && git add CHANGELOG.md","postlint":"es-shim-api --bound && evalmd README.md","posttest":"npx npm@\">= 10.2\" audit --production","prepublish":"not-in-publish || npm run prepublishOnly","tests-only":"nyc tape 'test/**/*.js'","postversion":"auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"","prepublishOnly":"safe-publish-latest"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"testling":{"files":"test/shimmed.js"},"repository":{"url":"git+https://github.com/es-shims/Map.groupBy.git","type":"git"},"_npmVersion":"10.9.2","description":"An ESnext spec-compliant `Map.groupBy` shim/polyfill/replacement that works as far down as ES3.","directories":{},"_nodeVersion":"23.10.0","dependencies":{"es-map":"^1.0.6","call-bind":"^1.0.8","es-abstract":"^1.23.9","define-properties":"^1.2.1"},"publishConfig":{"ignore":[".github/workflows"]},"_hasShrinkwrap":false,"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","hideCredit":true,"unreleased":false,"commitLimit":false,"backfillLimit":false},"devDependencies":{"nyc":"^10.3.2","tape":"^5.9.0","eslint":"=8.8.0","evalmd":"^0.0.19","encoding":"^0.1.13","for-each":"^0.3.5","npmignore":"^0.3.1","in-publish":"^2.0.1","@es-shims/api":"^2.5.1","auto-changelog":"^2.5.0","object-inspect":"^1.13.4","es-value-fixtures":"^1.7.1","safe-publish-latest":"^2.0.0","functions-have-names":"^1.2.3","@ljharb/eslint-config":"^21.1.1"},"_npmOperationalInternal":{"tmp":"tmp/map.groupby_1.0.4_1742920924178_0.7728381072307298","host":"s3://npm-registry-packages-npm-production"}},"1.0.5":{"name":"map.groupby","version":"1.0.5","description":"An ESnext spec-compliant `Map.groupBy` shim/polyfill/replacement that works as far down as ES3.","main":"index.js","exports":{".":"./index.js","./auto":"./auto.js","./polyfill":"./polyfill.js","./implementation":"./implementation.js","./shim":"./shim.js","./package.json":"./package.json"},"scripts":{"prepack":"npmignore --auto --commentLines=autogenerated","prepublish":"not-in-publish || npm run prepublishOnly","prepublishOnly":"safe-publish-latest","pretest":"npm run --silent lint","test":"npm run tests-only","posttest":"npx npm@\">= 10.2\" audit --production","tests-only":"nyc tape 'test/**/*.js'","lint":"eslint --ext=js,mjs .","postlint":"es-shim-api --bound && evalmd README.md","version":"auto-changelog && git add CHANGELOG.md","postversion":"auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""},"repository":{"type":"git","url":"git+https://github.com/es-shims/Map.groupBy.git"},"keywords":["ecmascript","javascript","polyfill","shim","es-shim API","array","Map","group","groupBy"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/es-shims/Map.groupBy/issues"},"homepage":"https://github.com/es-shims/Map.groupBy#readme","dependencies":{"call-bind":"^1.0.8","define-properties":"^1.2.1","es-abstract":"^1.24.0","es-map":"^2.0.1"},"devDependencies":{"@es-shims/api":"^2.5.1","@ljharb/eslint-config":"^21.2.0","auto-changelog":"^2.5.0","encoding":"^0.1.13","es-value-fixtures":"^1.7.1","eslint":"=8.8.0","evalmd":"^0.0.19","for-each":"^0.3.5","functions-have-names":"^1.2.3","in-publish":"^2.0.1","npmignore":"^0.3.1","nyc":"^10.3.2","object-inspect":"^1.13.4","safe-publish-latest":"^2.0.0","tape":"^5.9.0"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"publishConfig":{"ignore":[".github/workflows"]},"engines":{"node":">= 0.4"},"testling":{"files":"test/shimmed.js"},"_id":"map.groupby@1.0.5","gitHead":"8f00e32b719cd74bc1b52395a23688d136582a93","_nodeVersion":"24.7.0","_npmVersion":"11.5.1","dist":{"integrity":"sha512-HIN9Dhf5/UMOdnBk0rGL6DQmROi+ZBBKJoIdTJFc9NiS77kKVoTpGAm5LWkbjat4tmIlbA1HvrhAQWkVaslngA==","shasum":"e50708efa5221e4eac806ade3b7a4343579acc5c","tarball":"https://registry.npmjs.org/map.groupby/-/map.groupby-1.0.5.tgz","fileCount":16,"unpackedSize":18559,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQC/9nvb0u+XnPRK0rHAlosmCrvg9lT4tsMIldFtlY7IIgIhAJDGLeyem2InrD+qKIVDv7PFDqYTpL+Ut4ZBeo2gsA92"}]},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/map.groupby_1.0.5_1757653310675_0.031412914943214076"},"_hasShrinkwrap":false}},"time":{"created":"2023-07-11T16:42:17.599Z","modified":"2025-09-12T05:01:51.053Z","1.0.0":"2023-07-11T16:42:17.790Z","1.0.1":"2023-08-28T16:53:35.041Z","1.0.2":"2024-02-05T06:48:54.269Z","1.0.3":"2024-03-18T05:58:16.135Z","1.0.4":"2025-03-25T16:42:04.352Z","1.0.5":"2025-09-12T05:01:50.889Z"},"bugs":{"url":"https://github.com/es-shims/Map.groupBy/issues"},"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"license":"MIT","homepage":"https://github.com/es-shims/Map.groupBy#readme","keywords":["ecmascript","javascript","polyfill","shim","es-shim API","array","Map","group","groupBy"],"repository":{"type":"git","url":"git+https://github.com/es-shims/Map.groupBy.git"},"description":"An ESnext spec-compliant `Map.groupBy` shim/polyfill/replacement that works as far down as ES3.","maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"}],"readme":"# map.groupby <sup>[![Version Badge][npm-version-svg]][package-url]</sup>\n\n[![github actions][actions-image]][actions-url]\n[![coverage][codecov-image]][codecov-url]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\n[![npm badge][npm-badge-png]][package-url]\n\nAn ESnext spec-compliant `Map.groupBy` shim/polyfill/replacement that works as far down as ES3.\n\nThis package implements the [es-shim API](https://github.com/es-shims/api) interface. It works in an ES3-supported environment and complies with the proposed [spec](https://tc39.github.io/proposal-array-grouping/).\n\nNote: Safari 16 implements `Array.prototype.groupToMap`, but it does not work properly with strings containing surrogate pairs.\n\n## Getting started\n\n```sh\nnpm install --save map.groupby\n```\n\n## Usage/Examples\n\n```js\nvar groupBy = require('map.groupby');\nvar assert = require('assert');\n\nvar arr = [0, 1, 2, 3, 4, 5];\nvar parity = function (x) { return x % 2 === 0 ? 'even' : 'odd'; };\n\nvar results = groupBy(arr, function (x, i) {\n    assert.equal(x, arr[i]);\n    return parity(x);\n});\n\nassert.deepEqual(results, new Map([\n    ['even', [0, 2, 4]],\n    ['odd', [1, 3, 5]],\n]));\n```\n\n```js\nvar groupBy = require('map.groupby');\nvar assert = require('assert');\n/* when Map.groupBy is not present */\ndelete Map.groupBy;\nvar shimmed = groupBy.shim();\n\nassert.equal(shimmed, groupBy.getPolyfill());\nassert.deepEqual(Map.groupBy(arr, parity), groupBy(arr, parity));\n```\n\n```js\nvar groupBy = require('map.groupby');\nvar assert = require('assert');\n/* when Array#group is present */\nvar shimmed = groupBy.shim();\n\nassert.equal(shimmed, Map.groupBy);\nassert.deepEqual(Map.groupBy(arr, parity), groupBy(arr, parity));\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[package-url]: https://npmjs.org/package/map.groupby\n[npm-version-svg]: https://versionbadg.es/es-shims/Map.groupBy.svg\n[deps-svg]: https://david-dm.org/es-shims/Map.groupBy.svg\n[deps-url]: https://david-dm.org/es-shims/Map.groupBy\n[dev-deps-svg]: https://david-dm.org/es-shims/Map.groupBy/dev-status.svg\n[dev-deps-url]: https://david-dm.org/es-shims/Map.groupBy#info=devDependencies\n[npm-badge-png]: https://nodei.co/npm/map.groupby.png?downloads=true&stars=true\n[license-image]: https://img.shields.io/npm/l/map.groupby.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/map.groupby.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=map.groupby\n[codecov-image]: https://codecov.io/gh/es-shims/Map.groupBy/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/es-shims/Map.groupBy/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/es-shims/Map.groupBy\n[actions-url]: https://github.com/es-shims/Map.groupBy/actions\n","readmeFilename":"README.md"}