{"_id":"@bemoje/arr-sorted-add","_rev":"7-f091e76b37c1a01ae1140a26cb5c6126","name":"@bemoje/arr-sorted-add","dist-tags":{"latest":"1.0.4"},"versions":{"1.0.0":{"name":"@bemoje/arr-sorted-add","version":"1.0.0","keywords":["sorted","array","add","element","whichever","comparator","function","sort","passed","supports","comparator-builder","options","reference","https://github.com/bemoje/bemoje-arr-sort-comparator","arr","find","insertion","index","[compare]","[comparenumeric=false]","numerically","defaults","lexicographic/alphabetic","[comparedescending=false]","descending","order","ascending","[comparearray=false]","arrays","nested","compared","recursively","[compareby=undefined]","callbackelement","object","keys","dot-notation","support","callback","type","definition","getter","arrsortedadd"],"author":{"url":"https://github.io/bemoje/","name":"Benjamin M. Jensen","email":"bemoje@gmail.com"},"license":"MIT","_id":"@bemoje/arr-sorted-add@1.0.0","maintainers":[{"name":"bemoje","email":"bemoje@gmail.com"}],"homepage":"https://github.com/bemoje/bemoje-arr-sorted-add#readme","bugs":{"url":"https://github.com/bemoje/bemoje-arr-sorted-add/issues","email":"bemoje@gmail.com"},"dist":{"shasum":"c228c82ea6474b0ae31a09efdb5f92333a274b03","tarball":"https://registry.npmjs.org/@bemoje/arr-sorted-add/-/arr-sorted-add-1.0.0.tgz","fileCount":5,"integrity":"sha512-gPWsbeHki4Nv+JPCrwa6b0G3aVkWbBRcUy6XFc1bd7nJlzrYDdiGFDc27v5vo4QQrwo4mYdW69EwdoEhF0pumQ==","signatures":[{"sig":"MEUCIQCNW6NkmDS4Gh1SBX9mKI1gZilTNRYUQ9jIEFVzxeZ87gIgY6erFnVjw3LPAIUtA98fkAxIswGoKSYis2rCMauLUg8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14479,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqJj9CRA9TVsSAnZWagAAGXQP/joe3Q8FPXXfsVEANP7W\nDNa4EBjXMEvP8TULh5w5psoNQsfymJ98cyhdbLtK98prHc8mgjm/K1ltOrir\nFEgr5ORv48Oj6s9VnyGSHys4sfpAHlPvgCJRcCymIgZ4ePUG6VUorrv5b2Zn\nXpqDum7NFEju04nJICXseRihZLoPZGEGHQ1hy/JgrKeLeqiEv8AFgJ/7CmQc\n6Hf0sZOA/gyB4Uq1nSYaLs1RAC+0gbtwTSWe8q5J1pbfOxkw1aEFZsmq1BXn\nx5WAgsmMp+TT4zEzx2E9Sc8JOCUrGBZ93CNhfumFY+xxOgboPcRXtidfFffD\n8jsK9o6NG0XjYqzBmMbzsUFULRRUzcMqxhwCXLb5Jp0UN3Y1aNYeA5mHEoDn\nBngRR1CElPc0S1mIb0MfUq3nCsFFY3oi8nh+KhYfzL43ix+boWrdf1+VuEzo\nUcG32CzKkKrW81ZJREFKX5gBDtJn38vrroTiEZ326+VJ8hwLFvxF9g+7I3ry\nRQUH4wjIPAGv2wXMPGEY4Qadt4zWWCAWxfkTiU6kKVjxsbL5EDp8rsd14SKS\nlwdJOB6+e+GifxZ4kwsvaL/mRKnf6zEsuDB7MyNz688R8cyPc9llTcd61bje\niZwr7asW1966xhrsR0BtAsZVfANbL6+UYLDVi/gY/8kRFMQhDIaMnlxtWwL9\nhypM\r\n=CG8a\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/arr-sorted-add.umd.js","github":{"user":"bemoje"},"module":"dist/arr-sorted-add.esm.js","browser":"dist/arr-sorted-add.umd.js","scripts":{"docs":"documentation build src/** -f md -o docs/api.md && documentation build src/** -f html -o docs","repo":"node -r esm scripts/repo.js","test":"jest","bench":"node -r esm benchmark/arr-sorted-add.benchmark.js","build":"npm run test && npm run bench && npm run rollup && npm run docs && npm run description && npm run keywords && npm run readme","clean":"rimraf","major":"npm run repo bumpVersionMajor","minor":"npm run repo bumpVersionMinor","patch":"npm run repo bumpVersionPatch","start":"node -r esm src/arr-sorted-add.js","commit":"npm run repo gitCommit","readme":"npm run repo writeReadme","rename":"npm run repo rename","rollup":"rollup -c","example":"node -r esm examples/arr-sorted-add.example.js","publish":"npm run repo npmPublish","version":"npm run repo version","keywords":"npm run repo keywords","git-create":"rimraf .git && npm run repo gitCreate","git-delete":"rimraf .git && bash scripts/github-delete.sh bemoje bemoje-arr-sorted-add","description":"npm run repo description"},"_npmUser":{"name":"bemoje","email":"bemoje@gmail.com"},"repository":{"url":"git+https://github.com/bemoje/bemoje-arr-sorted-add.git","type":"git"},"_npmVersion":"6.12.1","description":"For a sorted array, add an element. Whichever comparator function was used to sort the array, can be passed. Also supports comparator-builder options. For reference, see: https://github.com/bemoje/bemoje-arr-sort-comparator","directories":{},"_nodeVersion":"12.13.0","dependencies":{"@bemoje/assert-args":"^1.0.0","@bemoje/assert-type":"^1.0.0","@bemoje/arr-sort-comparator":"^1.0.4","@bemoje/arr-sorted-insertion-index":"^3.0.0"},"_hasShrinkwrap":false,"devDependencies":{"esm":"^3.2.25","jest":"^24.9.0","path":"^0.12.7","rimraf":"^3.0.2","rollup":"^1.32.1","fs-extra":"^9.0.0","hirestime":"^6.0.1","walk-sync":"^2.1.0","babel-core":"^6.26.3","babel-jest":"^25.5.0","documentation":"^12.3.0","babel-preset-env":"^1.7.0","keyword-extractor":"0.0.18","rollup-plugin-commonjs":"^10.1.0","rollup-plugin-node-resolve":"^5.2.0"},"_npmOperationalInternal":{"tmp":"tmp/arr-sorted-add_1.0.0_1588107516929_0.2962035931920546","host":"s3://npm-registry-packages"},"deprecated":"Package is not maintained."},"1.0.1":{"name":"@bemoje/arr-sorted-add","version":"1.0.1","keywords":["sorted","array","add","element","whichever","comparator","function","sort","passed","supports","comparator-builder","options","reference","https://github.com/bemoje/bemoje-arr-sort-comparator","arr","find","insertion","index","[compare]","[comparenumeric=false]","numerically","defaults","lexicographic/alphabetic","[comparedescending=false]","descending","order","ascending","[comparearray=false]","arrays","nested","compared","recursively","[compareby=undefined]","callbackelement","object","keys","dot-notation","support","callback","type","definition","getter","arrsortedadd"],"author":{"url":"https://github.io/bemoje/","name":"Benjamin M. Jensen","email":"bemoje@gmail.com"},"license":"MIT","_id":"@bemoje/arr-sorted-add@1.0.1","maintainers":[{"name":"bemoje","email":"bemoje@gmail.com"}],"homepage":"https://github.com/bemoje/bemoje-arr-sorted-add#readme","bugs":{"url":"https://github.com/bemoje/bemoje-arr-sorted-add/issues","email":"bemoje@gmail.com"},"dist":{"shasum":"00999ee353119193c4ca209a96a2e548e30f0486","tarball":"https://registry.npmjs.org/@bemoje/arr-sorted-add/-/arr-sorted-add-1.0.1.tgz","fileCount":5,"integrity":"sha512-yDCmZgxF7RJ3W57gJn6L9rcm2RVXtqpwkJISpqmh0SLfgLmz2VW6vAwjWCiuegudsRWk3e8i4RMkUYicUxTFfg==","signatures":[{"sig":"MEUCIQD3CVShE2h4cIpnNo63r3lJmkSOebTulzjNkyMz9iIjuQIgfjAjK4esWoZoEvbb7PCdw7hf8DeSOcgCacUpI9c9F3c=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14479,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqJx5CRA9TVsSAnZWagAAkckP/14vkcwaEwahN/vCUVld\nOEyIOcZbnnekp7MB2ubzQBYR0dQiJ/jmpprtUE8Xpa8YMMgMTT8FtJYGNzr0\nd9NpdsdDkjAzXH+SQ8nUAOUxoyISWBLPfRNav1r/kxSa+97mCKcY6ru+Q9a2\nDc37ZglRj/MLZ4dCQjJwRFtKPtHDNqmivkfxV2Zt4A/TeiWjE5BDr4lPGWZ8\n+dwngWhssDWavj7i69RHuZRQSrw/9tjtqgZb8Zt+dijdvp8jNFssK6e44S3s\nBNDY0RirtmGFBAfrLoKERTLdRrITEcZ1APJUba/UFHkpIQVSVzfBbI85myOm\npjCRpvPQ3BihIkJJxeeruvq+xDQDjvicyYrYbInI3Mbamqf9mwdaJ1C9EdSA\nAvTVf0QrAt+Z77bq2Z5pMSzw/QuxTixVWbM0vy+9/uiGRE2WO1JWDMNGzVp2\n6sNvAa0Yba7PKDlaFnTUYdVogD+HhGUsd8zlnDbCq7qnuxOqbkqmExsOIW5r\njLOGSDH4Sl1IpmNA0+ay8hpHelBLDJ32y5JpIkaSNpNu1prwenBHV+MQQvp4\nTvBbVpOGBAcE1vVUF7xTVZRjBRR6PUniHcF/58vYaH8/lMjzvhY8hfRc44KZ\n5eh7c2hdE9/+F8wNr2t19KRRnkDFYaEagrKdvB0G4GtCG9gjFjnZIfJuDcr6\nAOg2\r\n=efc5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/arr-sorted-add.umd.js","github":{"user":"bemoje"},"module":"dist/arr-sorted-add.esm.js","browser":"dist/arr-sorted-add.umd.js","gitHead":"167042575fd2c85401e1d48ff954d803ce9f065a","scripts":{"docs":"documentation build src/** -f md -o docs/api.md && documentation build src/** -f html -o docs","repo":"node -r esm scripts/repo.js","test":"jest","bench":"node -r esm benchmark/arr-sorted-add.benchmark.js","build":"npm run test && npm run bench && npm run rollup && npm run docs && npm run description && npm run keywords && npm run readme","clean":"rimraf","major":"npm run repo bumpVersionMajor","minor":"npm run repo bumpVersionMinor","patch":"npm run repo bumpVersionPatch","start":"node -r esm src/arr-sorted-add.js","commit":"npm run repo gitCommit","readme":"npm run repo writeReadme","rename":"npm run repo rename","rollup":"rollup -c","example":"node -r esm examples/arr-sorted-add.example.js","publish":"npm run repo npmPublish","version":"npm run repo version","keywords":"npm run repo keywords","git-create":"rimraf .git && npm run repo gitCreate","git-delete":"rimraf .git && bash scripts/github-delete.sh bemoje bemoje-arr-sorted-add","description":"npm run repo description"},"_npmUser":{"name":"bemoje","email":"bemoje@gmail.com"},"repository":{"url":"git+https://github.com/bemoje/bemoje-arr-sorted-add.git","type":"git"},"_npmVersion":"6.12.1","description":"For a sorted array, add an element. Whichever comparator function was used to sort the array, can be passed. Also supports comparator-builder options. For reference, see: https://github.com/bemoje/bemoje-arr-sort-comparator","directories":{},"_nodeVersion":"12.13.0","dependencies":{"@bemoje/assert-args":"^1.0.0","@bemoje/assert-type":"^1.0.0","@bemoje/arr-sort-comparator":"^1.0.4","@bemoje/arr-sorted-insertion-index":"^3.0.0"},"_hasShrinkwrap":false,"devDependencies":{"esm":"^3.2.25","jest":"^24.9.0","path":"^0.12.7","rimraf":"^3.0.2","rollup":"^1.32.1","fs-extra":"^9.0.0","hirestime":"^6.0.1","walk-sync":"^2.1.0","babel-core":"^6.26.3","babel-jest":"^25.5.0","documentation":"^12.3.0","babel-preset-env":"^1.7.0","keyword-extractor":"0.0.18","rollup-plugin-commonjs":"^10.1.0","rollup-plugin-node-resolve":"^5.2.0"},"_npmOperationalInternal":{"tmp":"tmp/arr-sorted-add_1.0.1_1588108408723_0.114468155229696","host":"s3://npm-registry-packages"},"deprecated":"Package is not maintained."},"1.0.2":{"name":"@bemoje/arr-sorted-add","version":"1.0.2","keywords":["sorted","array","add","element","whichever","comparator","function","sort","passed","supports","comparator-builder","options","reference","https://github.com/bemoje/bemoje-arr-sort-comparator","arr","find","insertion","index","[compare]","[comparenumeric=false]","numerically","defaults","lexicographic/alphabetic","[comparedescending=false]","descending","order","ascending","[comparearray=false]","arrays","nested","compared","recursively","[compareby=undefined]","callbackelement","object","keys","dot-notation","support","callback","type","definition","getter","arrsortedadd"],"author":{"url":"https://github.io/bemoje/","name":"Benjamin M. Jensen","email":"bemoje@gmail.com"},"license":"MIT","_id":"@bemoje/arr-sorted-add@1.0.2","maintainers":[{"name":"bemoje","email":"bemoje@gmail.com"}],"homepage":"https://github.com/bemoje/bemoje-arr-sorted-add#readme","bugs":{"url":"https://github.com/bemoje/bemoje-arr-sorted-add/issues","email":"bemoje@gmail.com"},"dist":{"shasum":"697129b9264a849119edfa3b299fa643f93ea5aa","tarball":"https://registry.npmjs.org/@bemoje/arr-sorted-add/-/arr-sorted-add-1.0.2.tgz","fileCount":5,"integrity":"sha512-g08X+4FOQZ0SAZoeBjOaFQoaJ5Qn9H44Ne/mGSI8YUpgKTR2JNOgP2f2/nPk8AMOMCaWPQwt+6OExNp4k+UZoA==","signatures":[{"sig":"MEUCIQDxyMUAAE/Y01/drQF1LC83CizMShiXRsNByQ3r3bzQVwIgQXlGQYdkyl/fIWximr+1HEGmNS0cflb20QEYuUjza10=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14479,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqsFzCRA9TVsSAnZWagAAhuQP/1FIz0pVPUijnVkDV/RV\ncnkr93XNtA9yA67cGoeoFRz48JbWN4sN9mHwYFkXHZXFFPzGpjreCkTDXY3T\niyOxskrwpQ6r0L2/Hz3t8C0aeYqTRLeUrmYTDhNmx2fqB6OQ6EUrCvAkFWN3\n9Nvk3CjIG1mf9Tn1c167W6ePKcn9dorgCPP9gcceqszsbhfGRr92AbcrgVoI\n/9+QUdHSl6k/bjLy5dYV2QeNs51bmmN44naO9EPFup+/56sDb3UgiuP5DmLo\n/sScCLUhIC1ZToBpAOOmoeheC2iWnlGDoiX2NMXTdrM9q7LVdJjEWl5ufHtf\nNy4vKhIwI3SFYhkWXzpKxh5tTw/hGTKyKU5eysbBLdkd36IUGAjiTgTAdBI7\nbeEyCPwUN1ncvMssQ8iyMljQugBd4PX8XKfZkDbNXXfqKWFjO3qmEoM/bmF7\nLQr3d7nCLOZ9qpDl3UgkSJMus22XOQArrFzQEwhPj+ekUWIJMujD4JhjxkxS\noEt42YmxR28rqDnMEM5sVeIzL5XWcvtorKQvjd04BQgl15G0zg5gEFfGB3+6\n1y+yy/2KHYM+oWiaPn6LO9WEwqk6dghf+ePCTqv8esyo1eXySYVz0h70Hj/B\npLl4IW6930cl8EmAvEXbZJukbT+KQHvguXOGs7cw6hBola9aGGuv6J/aVhLj\nHh7e\r\n=HRjX\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/arr-sorted-add.umd.js","github":{"user":"bemoje"},"module":"dist/arr-sorted-add.esm.js","browser":"dist/arr-sorted-add.umd.js","gitHead":"581e9202d62f3019e3ee09019aa70b0f16794aa1","scripts":{"docs":"documentation build src/** -f md -o docs/api.md && documentation build src/** -f html -o docs","repo":"node -r esm scripts/repo.js","test":"jest","bench":"node -r esm benchmark/arr-sorted-add.benchmark.js","build":"npm run test && npm run bench && npm run rollup && npm run docs && npm run description && npm run keywords && npm run readme","clean":"rimraf","major":"npm run repo bumpVersionMajor","minor":"npm run repo bumpVersionMinor","patch":"npm run repo bumpVersionPatch","start":"node -r esm src/arr-sorted-add.js","commit":"npm run repo gitCommit","readme":"npm run repo writeReadme","rename":"npm run repo rename","rollup":"rollup -c","example":"node -r esm examples/arr-sorted-add.example.js","publish":"npm run repo npmPublish","version":"npm run repo version","keywords":"npm run repo keywords","git-create":"rimraf .git && npm run repo gitCreate","git-delete":"rimraf .git && bash scripts/github-delete.sh bemoje bemoje-arr-sorted-add","description":"npm run repo description"},"_npmUser":{"name":"bemoje","email":"bemoje@gmail.com"},"repository":{"url":"git+https://github.com/bemoje/bemoje-arr-sorted-add.git","type":"git"},"_npmVersion":"6.12.1","description":"For a sorted array, add an element. Whichever comparator function was used to sort the array, can be passed. Also supports comparator-builder options. For reference, see: https://github.com/bemoje/bemoje-arr-sort-comparator","directories":{},"_nodeVersion":"12.13.0","dependencies":{"@bemoje/assert-args":"^1.0.0","@bemoje/assert-type":"^1.0.0","@bemoje/arr-sort-comparator":"^1.0.4","@bemoje/arr-sorted-insertion-index":"^3.0.1"},"_hasShrinkwrap":false,"devDependencies":{"esm":"^3.2.25","jest":"^24.9.0","path":"^0.12.7","rimraf":"^3.0.2","rollup":"^1.32.1","fs-extra":"^9.0.0","hirestime":"^6.0.1","walk-sync":"^2.1.0","babel-core":"^6.26.3","babel-jest":"^25.5.1","documentation":"^12.3.0","babel-preset-env":"^1.7.0","keyword-extractor":"0.0.18","rollup-plugin-commonjs":"^10.1.0","rollup-plugin-node-resolve":"^5.2.0"},"_npmOperationalInternal":{"tmp":"tmp/arr-sorted-add_1.0.2_1588248947221_0.04361779498541707","host":"s3://npm-registry-packages"},"deprecated":"Package is not maintained."},"1.0.3":{"name":"@bemoje/arr-sorted-add","version":"1.0.3","keywords":["sorted","array","add","element","whichever","comparator","function","sort","passed","supports","comparator-builder","options","reference","https://github.com/bemoje/bemoje-arr-sort-comparator","arr","find","insertion","index","[compare]","[comparenumeric=false]","numerically","defaults","lexicographic/alphabetic","[comparedescending=false]","descending","order","ascending","[comparearray=false]","arrays","nested","compared","recursively","[compareby=undefined]","callbackelement","object","keys","dot-notation","support","[duplicates=true]","duplicate","exists","callback","type","definition","getter","arrsortedadd"],"author":{"url":"https://github.io/bemoje/","name":"Benjamin M. Jensen","email":"bemoje@gmail.com"},"license":"MIT","_id":"@bemoje/arr-sorted-add@1.0.3","maintainers":[{"name":"bemoje","email":"bemoje@gmail.com"}],"homepage":"https://github.com/bemoje/bemoje-arr-sorted-add#readme","bugs":{"url":"https://github.com/bemoje/bemoje-arr-sorted-add/issues","email":"bemoje@gmail.com"},"dist":{"shasum":"389815602074aa33e11ee4bfa8477ec0cd118625","tarball":"https://registry.npmjs.org/@bemoje/arr-sorted-add/-/arr-sorted-add-1.0.3.tgz","fileCount":5,"integrity":"sha512-CBVoDm133DghM5Yj9A0OZj7oSrFSv3b28gdVxIb43jrd6ZWTO7pxfwiqjHmUDcprXreKwofVsz2pMhH0VR1xmQ==","signatures":[{"sig":"MEUCIQDY+ejxMuoLByrqaElBrQyotX2kgZzF9qSrEgmlvdTA3wIgCY8A6Dv5dsyZNdv/laZ+ZR+YXV9aqnkYh74vr9QmiMg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16146,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqwwfCRA9TVsSAnZWagAA48oP/1XENDYsvK7JJHr0HcnI\n/zqq8wiuz8klCjf1DyJn0dHkDDuCvG5yrhBQOGkUK+oBmwvSZGlBBloy/ogd\nmrjMyO/RpVIKyRre25F6gf4YH5fItAdIMQ5M92va+1Ws06GpAt2cudEejlRu\nGfcdzHzLeh4RntQJ3hINT2J/4/GfH4I2bJq1Y4OGpHP2zr82/AiAWnC1ArcL\nQ7hpULbyAr+JYtNRggHDccSJUG605Kb41qOoczNP+zx2KdeckRlxpHLhcFfE\nnkG91MNFye78VfmOcQV9EQFfUnNYyg8n2VJZ+0dTENMJBUcV6Zq3LuqIeJzS\nAmbBPDwk97ip1nE5iNBXxYdLmwronP/8vb7o006vGgNvBzFHkRbmG77mO7Qy\n7ymxnP3JLowAx/iu/ulhSJuU0f05nvIg+8JzIVIafesmt2lQxNJtgfO55cb5\n6uqcc5H0COzzjc1VNCptxbFIhHaL/BQgcHNNuB1Vqp7YxIHW1dacIraBcT/A\noFbrEBed75ch87H+T9Sstay2iGnqbsyuBdxTWmEvJlgLTXAVeK43IO6gmJLo\nO05o41oJ3n+zX2uYvoCrpy0uXa3gVcCSmzbHXQmZN7OFZK0Ql0NLRsA5A9rt\nFtHblIV8D4ZspZeh+I3+8bxo5AcvGpgCnND5CMYkcUYpzw+XFBXkiNIxqEuv\nH0ve\r\n=/cHI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/arr-sorted-add.umd.js","github":{"user":"bemoje"},"module":"dist/arr-sorted-add.esm.js","browser":"dist/arr-sorted-add.umd.js","gitHead":"c853dd00a2b06126eae82c7e6c448b176f6fef7a","scripts":{"docs":"documentation build src/** -f md -o docs/api.md && documentation build src/** -f html -o docs","repo":"node -r esm scripts/repo.js","test":"jest","bench":"node -r esm benchmark/arr-sorted-add.benchmark.js","build":"npm run test && npm run bench && npm run rollup && npm run docs && npm run description && npm run keywords && npm run readme","clean":"rimraf","major":"npm run repo bumpVersionMajor","minor":"npm run repo bumpVersionMinor","patch":"npm run repo bumpVersionPatch","start":"node -r esm src/arr-sorted-add.js","commit":"npm run repo gitCommit","readme":"npm run repo writeReadme","rename":"npm run repo rename","rollup":"rollup -c","example":"node -r esm examples/arr-sorted-add.example.js","publish":"npm run repo npmPublish","version":"npm run repo version","keywords":"npm run repo keywords","git-create":"rimraf .git && npm run repo gitCreate","git-delete":"rimraf .git && bash scripts/github-delete.sh bemoje bemoje-arr-sorted-add","description":"npm run repo description"},"_npmUser":{"name":"bemoje","email":"bemoje@gmail.com"},"repository":{"url":"git+https://github.com/bemoje/bemoje-arr-sorted-add.git","type":"git"},"_npmVersion":"6.12.1","description":"For a sorted array, add an element. Whichever comparator function was used to sort the array, can be passed. Also supports comparator-builder options. For reference, see: https://github.com/bemoje/bemoje-arr-sort-comparator","directories":{},"_nodeVersion":"12.13.0","dependencies":{"@bemoje/assert-args":"^1.0.0","@bemoje/assert-type":"^1.0.0","@bemoje/arr-sort-comparator":"^1.0.5","@bemoje/arr-sorted-insertion-index":"^3.0.1"},"_hasShrinkwrap":false,"devDependencies":{"esm":"^3.2.25","jest":"^24.9.0","path":"^0.12.7","rimraf":"^3.0.2","rollup":"^1.32.1","fs-extra":"^9.0.0","hirestime":"^6.0.1","walk-sync":"^2.1.0","babel-core":"^6.26.3","babel-jest":"^25.5.1","documentation":"^12.3.0","babel-preset-env":"^1.7.0","keyword-extractor":"0.0.18","rollup-plugin-commonjs":"^10.1.0","rollup-plugin-node-resolve":"^5.2.0"},"_npmOperationalInternal":{"tmp":"tmp/arr-sorted-add_1.0.3_1588268062920_0.7063296915422839","host":"s3://npm-registry-packages"},"deprecated":"Package is not maintained."},"1.0.4":{"name":"@bemoje/arr-sorted-add","version":"1.0.4","keywords":["sorted","array","add","element","whichever","comparator","function","sort","passed","supports","comparator-builder","options","reference","https://github.com/bemoje/bemoje-arr-sort-comparator","arr","find","insertion","index","[compare]","[comparenumeric=false]","numerically","defaults","lexicographic/alphabetic","[comparedescending=false]","descending","order","ascending","[comparearray=false]","arrays","nested","compared","recursively","[compareby=undefined]","callbackelement","object","keys","dot-notation","support","[duplicates=true]","duplicate","exists","callback","type","definition","getter","arrsortedadd"],"author":{"url":"https://github.io/bemoje/","name":"Benjamin M. Jensen","email":"bemoje@gmail.com"},"license":"MIT","_id":"@bemoje/arr-sorted-add@1.0.4","maintainers":[{"name":"bemoje","email":"bemoje@gmail.com"}],"homepage":"https://github.com/bemoje/bemoje-arr-sorted-add#readme","bugs":{"url":"https://github.com/bemoje/bemoje-arr-sorted-add/issues","email":"bemoje@gmail.com"},"dist":{"shasum":"c2fdbfbbef26468b83f52aa304b9a1b7fac52da4","tarball":"https://registry.npmjs.org/@bemoje/arr-sorted-add/-/arr-sorted-add-1.0.4.tgz","fileCount":5,"integrity":"sha512-d77kzOk+O9b4544KnQgXRaZpn7FDbhxnvw9aSfnpAEh4OHW1uTzaiOg+w19BG85eSji8xRoOebzGUsztl5uslg==","signatures":[{"sig":"MEUCIQDKJK/GBsLagLA9ynk8+LrINoJ3s4ba7I4jGvbDYBtEkwIgHvB40QSujEU8K/Q+5PcO2kGihU5oGQ4FD4+4kU8bKb8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16097,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqxXLCRA9TVsSAnZWagAA/p4P/0AvGwgmqLb7W/EK44O9\n5PWZdqD1tqf8TGCC4A/sE79/lJf7VctSxPzMrZOFoPeRKmIwZbdtUZv3jAPn\nnnCpBlf6AJ6X13yLtD00xYQUKnHcw9JyPd07hdnNzwcOJHj63zH+zvFXBVaV\nUsYP8cS1StmPk/vQiEWq5hjc7XVtPWXMjcQMIWYGOs59UiaQ0WJFf8pgcAvO\nFq4XIAZ8iRKTvdXVooP61uHyGXm50HVG/E3P+vta/csPxiMAW9wpYZWkQuUa\nA4NHypK2HLWimhUE9z02fA2n/m1qndGjwee7uKTR3pQTkkNC538DnOw8HeqQ\nZq96DE7NYaqhjgaIZSIRYrAs6YIW0FGlwz8oYa8RpNlZCJy5D0V78cSUjLdM\nUdwNri3E+NPEdC85kZTbTZt9qaR5uhv/ZJUmv0HbARyRn2a/b2elqgzak7aK\n4thKqGa2bofFJt4OwW3MaCept08D25AvVOJR+bkahrIdAShR9YNMGFK6+ngE\n9tlJwnlxbQEBbeIcCdbBbAcBtawQK31pnDnjSmmDT2n/Bwn/XAVMIfLFRxre\n0+IZMhk+uA0uVswJrPUIbGP8FnRRnyY3fTvqQ1/BG7MPqUj4FtK1UYy576Rw\nGrzCFTT8105LipIGqm8AU08+9/uajx3raz8MTaB9xVb6PEDWYvqQNTne8hOJ\nSs+p\r\n=kC0A\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/arr-sorted-add.umd.js","github":{"user":"bemoje"},"module":"dist/arr-sorted-add.esm.js","browser":"dist/arr-sorted-add.umd.js","gitHead":"384a0baa18a9e8517539d4de42c633429e19f923","scripts":{"docs":"documentation build src/** -f md -o docs/api.md && documentation build src/** -f html -o docs","repo":"node -r esm scripts/repo.js","test":"jest","bench":"node -r esm benchmark/arr-sorted-add.benchmark.js","build":"npm run test && npm run bench && npm run rollup && npm run docs && npm run description && npm run keywords && npm run readme","clean":"rimraf","major":"npm run repo bumpVersionMajor","minor":"npm run repo bumpVersionMinor","patch":"npm run repo bumpVersionPatch","start":"node -r esm src/arr-sorted-add.js","commit":"npm run repo gitCommit","readme":"npm run repo writeReadme","rename":"npm run repo rename","rollup":"rollup -c","example":"node -r esm examples/arr-sorted-add.example.js","publish":"npm run repo npmPublish","version":"npm run repo version","keywords":"npm run repo keywords","git-create":"rimraf .git && npm run repo gitCreate","git-delete":"rimraf .git && bash scripts/github-delete.sh bemoje bemoje-arr-sorted-add","description":"npm run repo description"},"_npmUser":{"name":"bemoje","email":"bemoje@gmail.com"},"repository":{"url":"git+https://github.com/bemoje/bemoje-arr-sorted-add.git","type":"git"},"_npmVersion":"6.12.1","description":"For a sorted array, add an element. Whichever comparator function was used to sort the array, can be passed. Also supports comparator-builder options. For reference, see: https://github.com/bemoje/bemoje-arr-sort-comparator","directories":{},"_nodeVersion":"12.13.0","dependencies":{"@bemoje/assert-args":"^1.0.0","@bemoje/assert-type":"^1.0.0","@bemoje/arr-sort-comparator":"^1.0.5","@bemoje/arr-sorted-insertion-index":"^3.0.1"},"_hasShrinkwrap":false,"devDependencies":{"esm":"^3.2.25","jest":"^24.9.0","path":"^0.12.7","rimraf":"^3.0.2","rollup":"^1.32.1","fs-extra":"^9.0.0","hirestime":"^6.0.1","walk-sync":"^2.1.0","babel-core":"^6.26.3","babel-jest":"^25.5.1","documentation":"^12.3.0","babel-preset-env":"^1.7.0","keyword-extractor":"0.0.18","rollup-plugin-commonjs":"^10.1.0","rollup-plugin-node-resolve":"^5.2.0"},"_npmOperationalInternal":{"tmp":"tmp/arr-sorted-add_1.0.4_1588270538507_0.4511211773871153","host":"s3://npm-registry-packages"},"deprecated":"Package is not maintained."}},"time":{"created":"2020-04-28T20:58:36.896Z","modified":"2025-06-17T23:55:43.655Z","1.0.0":"2020-04-28T20:58:37.100Z","1.0.1":"2020-04-28T21:13:28.850Z","1.0.2":"2020-04-30T12:15:47.357Z","1.0.3":"2020-04-30T17:34:23.025Z","1.0.4":"2020-04-30T18:15:38.683Z"},"bugs":{"url":"https://github.com/bemoje/bemoje-arr-sorted-add/issues","email":"bemoje@gmail.com"},"author":{"url":"https://github.io/bemoje/","name":"Benjamin M. Jensen","email":"bemoje@gmail.com"},"license":"MIT","homepage":"https://github.com/bemoje/bemoje-arr-sorted-add#readme","keywords":["sorted","array","add","element","whichever","comparator","function","sort","passed","supports","comparator-builder","options","reference","https://github.com/bemoje/bemoje-arr-sort-comparator","arr","find","insertion","index","[compare]","[comparenumeric=false]","numerically","defaults","lexicographic/alphabetic","[comparedescending=false]","descending","order","ascending","[comparearray=false]","arrays","nested","compared","recursively","[compareby=undefined]","callbackelement","object","keys","dot-notation","support","[duplicates=true]","duplicate","exists","callback","type","definition","getter","arrsortedadd"],"repository":{"url":"git+https://github.com/bemoje/bemoje-arr-sorted-add.git","type":"git"},"description":"For a sorted array, add an element. Whichever comparator function was used to sort the array, can be passed. Also supports comparator-builder options. For reference, see: https://github.com/bemoje/bemoje-arr-sort-comparator","maintainers":[{"name":"bemoje","email":"bemoje@gmail.com"}],"readme":"# @bemoje/arr-sorted-add\n\nFor a sorted array, add an element. Whichever comparator function was used to sort the array, can be passed. Also supports comparator-builder options. For reference, see: https://github.com/bemoje/bemoje-arr-sort-comparator\n\n#### Version\n\n<span><a href=\"https://npmjs.org/@bemoje/arr-sorted-add\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/@bemoje/arr-sorted-add\" alt=\"NPM version\" /></a></span>\n\n#### Travis CI\n\n<span><a href=\"https://npmjs.org/@bemoje/arr-sorted-add\" title=\"View this project on NPM\"><img src=\"https://travis-ci.org/bemoje/bemoje-arr-sorted-add.svg?branch=master\" alt=\"dependencies\" /></a></span>\n\n#### Dependencies\n\n<span><a href=\"https://npmjs.org/@bemoje/arr-sorted-add\" title=\"View this project on NPM\"><img src=\"https://david-dm.org/bemoje/bemoje-arr-sorted-add.svg\" alt=\"dependencies\" /></a></span>\n\n#### Stats\n\n<span><a href=\"https://npmjs.org/@bemoje/arr-sorted-add\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dt/@bemoje/arr-sorted-add\" alt=\"NPM downloads\" /></a></span>\n<span><a href=\"https://github.com/bemoje/bemoje-arr-sorted-add/fork\" title=\"Fork this project\"><img src=\"https://img.shields.io/github/forks/bemoje/bemoje-arr-sorted-add\" alt=\"Forks\" /></a></span>\n\n#### Donate\n\n<span><a href=\"https://www.buymeacoffee.com/bemoje\" title=\"Donate to this project using Buy Me A Beer\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg?label=Buy me a beer!\" alt=\"Buy Me A Beer donate button\" /></a></span>\n<span><a href=\"https://paypal.me/forstaaloen\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg?label=PayPal\" alt=\"PayPal donate button\" /></a></span>\n\n## Installation\n\n```sh\nnpm install @bemoje/arr-sorted-add\nnpm install --save @bemoje/arr-sorted-add\nnpm install --save-dev @bemoje/arr-sorted-add\n```\n\n## Usage\n\n```javascript\n\nimport arrSortedAdd from '@bemoje/arr-sorted-add'\n\n/**\n * ADD ELEMENT TO SORTED ARRAY\n * Defaults to alphabetically\n */\n\nconst alpha = ['a', 'c', 'd']\n\narrSortedAdd(alpha, 'b')\n//=> ['a', 'b', 'c', 'd']\n\narrSortedAdd(alpha, 'a')\n//=> ['a', 'a', 'b', 'c', 'd']\n\narrSortedAdd(alpha, 'e')\n//=> ['a', 'a', 'b', 'c', 'd', 'e']\n\narrSortedAdd(alpha, '_')\n//=> ['_', 'a', 'a', 'b', 'c', 'd', 'e']\n\n/**\n * ADD NUMERICAL VALUES\n */\n\nconst numeric = [0, 4, 6]\n\narrSortedAdd(numeric, 1, {\n  numeric: true,\n})\n//=> [0, 1, 4, 6]\n\narrSortedAdd(numeric, 5, {\n  numeric: true,\n})\n//=> [0, 1, 4, 5, 6]\n\narrSortedAdd(numeric, 7, {\n  numeric: true,\n})\n//=> [0, 1, 4, 5, 6, 7]\n\narrSortedAdd(numeric, 3, {\n  numeric: true,\n})\n//=> [0, 1, 3, 4, 5, 6, 7]\n\n/**\n * To see more examples of using the comparator builder, visit:\n *  https://github.com/bemoje/bemoje-arr-sort-comparator\n */\n\n```\n\n\n## Tests\nUses *Jest* to test module functionality. Run tests to get coverage details.\n\n```bash\nnpm run test\n```\n\n## API\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n#### Table of Contents\n\n-   [arrSortedAdd][1]\n\n    -   [Parameters][2]\n\n-   [getter][3]\n\n    -   [Parameters][4]\n\n## arrSortedAdd\n\nFor a sorted array, add an element. Whichever comparator function was used to sort the array, can be passed. Also supports comparator-builder options. For reference, see: [https://github.com/bemoje/bemoje-arr-sort-comparator][5]\n\n##### Parameters\n\n-   `arr` **[Array][6]** The array\n\n-   `element` **any** The element for which to find its insertion index\n\n-   `compare` **([function][7] \\| [object][8])?** \n\n    -   `compare.numeric` **[boolean][9]** Sort numerically. Defaults to lexicographic/alphabetic sort. (optional, default `false`)\n\n    -   `compare.descending` **[boolean][9]** Sort in descending order. Defaults to ascending order. (optional, default `false`)\n\n    -   `compare.array` **[boolean][9]** Sort arrays. Nested arrays are also compared recursively. (optional, default `false`)\n\n    -   `compare.by` **([number][10] \\| [string][11] \\| [getter][12])** Sort by either array index, a callback(element): any - or by object keys with dot-notation support. (optional, default `undefined`)\n\n-   `duplicates` **[boolean][9]** Whether to add the element if a duplicate element exists. (optional, default `true`)\n\nReturns **[Array][6]** The sorted array\n\n## getter\n\nCallback type definition.\n\nType: [Function][7]\n\n##### Parameters\n\n-   `a` **any** The value\n\nReturns **any** The value to be compared\n\n[1]: #arrsortedadd\n\n[2]: #parameters\n\n[3]: #getter\n\n[4]: #parameters-1\n\n[5]: https://github.com/bemoje/bemoje-arr-sort-comparator\n\n[6]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array\n\n[7]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function\n\n[8]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object\n\n[9]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean\n\n[10]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number\n\n[11]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String\n\n[12]: #getter","readmeFilename":"readme.md"}