{"_id":"array.prototype.toreversed","_rev":"3337869","name":"array.prototype.toreversed","description":"An ESnext spec-compliant `Array.prototype.toReversed` shim/polyfill/replacement that works as far down as ES3.","dist-tags":{"latest":"1.1.2"},"maintainers":[{"name":"ljharb","email":""}],"time":{"modified":"2024-07-10T08:08:05.000Z","created":"2022-03-31T14:09:13.443Z","1.1.2":"2023-09-07T17:05:14.623Z","1.1.1":"2022-11-04T06:59:07.272Z","1.1.0":"2022-08-15T05:27:44.476Z","1.0.1":"2022-04-02T16:05:50.089Z","1.0.0":"2022-03-31T14:09:13.443Z"},"users":{},"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/es-shims/Array.prototype.toReversed.git"},"versions":{"1.1.2":{"name":"array.prototype.toreversed","version":"1.1.2","description":"An ESnext spec-compliant `Array.prototype.toReversed` 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":{"prepublish":"not-in-publish || npm run prepublishOnly","prepublishOnly":"safe-publish-latest","lint":"eslint --ext=js,mjs .","postlint":"es-shim-api --bound && evalmd README.md","pretest":"npm run --silent lint","test":"npm run tests-only","posttest":"aud --production","tests-only":"nyc tape 'test/**/*.js'","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/Array.prototype.toReversed.git"},"keywords":["ecmascript","javascript","polyfill","shim","es-shim API","array","reverse","toReversed","reversed"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/es-shims/Array.prototype.toReversed/issues"},"homepage":"https://github.com/es-shims/Array.prototype.toReversed#readme","devDependencies":{"@es-shims/api":"^2.4.2","@ljharb/eslint-config":"^21.1.0","aud":"^2.0.3","auto-changelog":"^2.4.0","eslint":"=8.8.0","evalmd":"^0.0.19","functions-have-names":"^1.2.3","has-strict-mode":"^1.0.1","in-publish":"^2.0.1","nyc":"^10.3.2","safe-publish-latest":"^2.0.0","tape":"^5.6.6"},"dependencies":{"call-bind":"^1.0.2","define-properties":"^1.2.0","es-abstract":"^1.22.1","es-shim-unscopables":"^1.0.0"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"_id":"array.prototype.toreversed@1.1.2","gitHead":"dae18065b74fb98686ddfb5462294963c4310600","_nodeVersion":"20.6.0","_npmVersion":"9.8.1","dist":{"shasum":"b989a6bf35c4c5051e1dc0325151bf8088954eba","size":6428,"noattachment":false,"key":"/array.prototype.toreversed/-/array.prototype.toreversed-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/array.prototype.toreversed/download/array.prototype.toreversed-1.1.2.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/array.prototype.toreversed_1.1.2_1694106314406_0.7389695385518691"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-09-07T17:05:14.623Z","publish_time":1694106314623,"_source_registry_name":"default","_cnpm_publish_time":1694106314623},"1.1.1":{"name":"array.prototype.toreversed","version":"1.1.1","description":"An ESnext spec-compliant `Array.prototype.toReversed` 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":{"prepublish":"not-in-publish || npm run prepublishOnly","prepublishOnly":"safe-publish-latest","lint":"eslint --ext=js,mjs .","postlint":"es-shim-api --bound && evalmd README.md","pretest":"npm run --silent lint","test":"npm run tests-only","posttest":"aud --production","tests-only":"nyc tape 'test/**/*.js'","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/Array.prototype.toReversed.git"},"keywords":["ecmascript","javascript","polyfill","shim","es-shim API","array","reverse","toReversed","reversed"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/es-shims/Array.prototype.toReversed/issues"},"homepage":"https://github.com/es-shims/Array.prototype.toReversed#readme","devDependencies":{"@es-shims/api":"^2.2.3","@ljharb/eslint-config":"^21.0.0","aud":"^2.0.1","auto-changelog":"^2.4.0","eslint":"=8.8.0","evalmd":"^0.0.19","functions-have-names":"^1.2.3","has-strict-mode":"^1.0.1","in-publish":"^2.0.1","nyc":"^10.3.2","safe-publish-latest":"^2.0.0","tape":"^5.6.1"},"dependencies":{"call-bind":"^1.0.2","define-properties":"^1.1.4","es-abstract":"^1.20.4","es-shim-unscopables":"^1.0.0"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"gitHead":"c5f03bf1692701dd90ded2e92256a662b8eb0921","_id":"array.prototype.toreversed@1.1.1","_nodeVersion":"19.0.0","_npmVersion":"8.19.2","dist":{"shasum":"a14a06c594f05785538e44ad29cb9112654d0265","size":6327,"noattachment":false,"key":"/array.prototype.toreversed/-/array.prototype.toreversed-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/array.prototype.toreversed/download/array.prototype.toreversed-1.1.1.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/array.prototype.toreversed_1.1.1_1667545147110_0.3877398233561131"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-11-04T06:59:14.203Z","publish_time":1667545147272,"_cnpm_publish_time":1667545147272},"1.1.0":{"name":"array.prototype.toreversed","version":"1.1.0","description":"An ESnext spec-compliant `Array.prototype.toReversed` 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":{"prepublish":"not-in-publish || npm run prepublishOnly","prepublishOnly":"safe-publish-latest","lint":"eslint --ext=js,mjs .","postlint":"es-shim-api --bound && evalmd README.md","pretest":"npm run --silent lint","test":"npm run tests-only","posttest":"aud --production","tests-only":"nyc tape 'test/**/*.js'","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/Array.prototype.toReversed.git"},"keywords":["ecmascript","javascript","polyfill","shim","es-shim API","array","reverse","toReversed","reversed"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/es-shims/Array.prototype.toReversed/issues"},"homepage":"https://github.com/es-shims/Array.prototype.toReversed#readme","devDependencies":{"@es-shims/api":"^2.2.3","@ljharb/eslint-config":"^21.0.0","aud":"^2.0.0","auto-changelog":"^2.4.0","eslint":"=8.8.0","evalmd":"^0.0.19","functions-have-names":"^1.2.3","has-strict-mode":"^1.0.1","nyc":"^10.3.2","safe-publish-latest":"^2.0.0","tape":"^5.5.3"},"dependencies":{"call-bind":"^1.0.2","define-properties":"^1.1.4","es-abstract":"^1.19.2","es-shim-unscopables":"^1.0.0"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"gitHead":"e9dfc635cb62a48045aa5c9315b150d4ecec691b","_id":"array.prototype.toreversed@1.1.0","_nodeVersion":"18.7.0","_npmVersion":"8.15.0","dist":{"shasum":"4ca7e0c4a19f4436d09ea44bed82ab8c81fc1034","size":6161,"noattachment":false,"key":"/array.prototype.toreversed/-/array.prototype.toreversed-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/array.prototype.toreversed/download/array.prototype.toreversed-1.1.0.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/array.prototype.toreversed_1.1.0_1660541264235_0.6348936647757026"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-08-15T05:27:48.804Z","publish_time":1660541264476,"_cnpm_publish_time":1660541264476},"1.0.1":{"name":"array.prototype.toreversed","version":"1.0.1","description":"An ESnext spec-compliant `Array.prototype.toReversed` 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":{"prepublish":"not-in-publish || npm run prepublishOnly","prepublishOnly":"safe-publish-latest","lint":"eslint --ext=js,mjs .","postlint":"es-shim-api --bound && evalmd README.md","pretest":"npm run --silent lint","test":"npm run tests-only","posttest":"aud --production","tests-only":"nyc tape 'test/**/*.js'","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/Array.prototype.toReversed.git"},"keywords":["ecmascript","javascript","polyfill","shim","es-shim API","array","reverse","toReversed","reversed"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/es-shims/Array.prototype.toReversed/issues"},"homepage":"https://github.com/es-shims/Array.prototype.toReversed#readme","devDependencies":{"@es-shims/api":"^2.2.3","@ljharb/eslint-config":"^20.2.3","aud":"^2.0.0","auto-changelog":"^2.4.0","eslint":"=8.8.0","evalmd":"^0.0.19","functions-have-names":"^1.2.2","has-strict-mode":"^1.0.1","nyc":"^10.3.2","safe-publish-latest":"^2.0.0","tape":"^5.5.2"},"dependencies":{"call-bind":"^1.0.2","define-properties":"^1.1.3","es-abstract":"^1.19.2"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"gitHead":"8e3cae9f2e27fda9afb67ded0c2ddbcd189da6b4","_id":"array.prototype.toreversed@1.0.1","_nodeVersion":"17.8.0","_npmVersion":"8.6.0","dist":{"shasum":"1ee7782d0ea411414495bc04169ece21f3540fb0","size":5505,"noattachment":false,"key":"/array.prototype.toreversed/-/array.prototype.toreversed-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/array.prototype.toreversed/download/array.prototype.toreversed-1.0.1.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/array.prototype.toreversed_1.0.1_1648915549912_0.6269933986671299"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-04-02T16:05:56.187Z","publish_time":1648915550089,"_cnpm_publish_time":1648915550089},"1.0.0":{"name":"array.prototype.toreversed","version":"1.0.0","description":"An ESnext spec-compliant `Array.prototype.toReversed` 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":{"prepublish":"not-in-publish || npm run prepublishOnly","prepublishOnly":"safe-publish-latest","lint":"eslint --ext=js,mjs .","postlint":"es-shim-api --bound && evalmd README.md","pretest":"npm run --silent lint","test":"npm run tests-only","posttest":"aud --production","tests-only":"nyc tape 'test/**/*.js'","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/Array.prototype.toReversed.git"},"keywords":["ecmascript","javascript","polyfill","shim","es-shim API","array","reverse","toReversed","reversed"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/es-shims/Array.prototype.toReversed/issues"},"homepage":"https://github.com/es-shims/Array.prototype.toReversed#readme","devDependencies":{"@es-shims/api":"^2.2.3","@ljharb/eslint-config":"^20.2.3","aud":"^2.0.0","auto-changelog":"^2.4.0","eslint":"=8.8.0","evalmd":"^0.0.19","functions-have-names":"^1.2.2","has-strict-mode":"^1.0.1","nyc":"^10.3.2","safe-publish-latest":"^2.0.0","tape":"^5.5.2"},"dependencies":{"call-bind":"^1.0.2","define-properties":"^1.1.3"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"gitHead":"7a2726aac5df9020184fea4d2491ab76a1e3eb6d","_id":"array.prototype.toreversed@1.0.0","_nodeVersion":"17.8.0","_npmVersion":"8.3.1","dist":{"shasum":"eb7bd0dd01058a5723363179b80fcf170f3daf48","size":4954,"noattachment":false,"key":"/array.prototype.toreversed/-/array.prototype.toreversed-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/array.prototype.toreversed/download/array.prototype.toreversed-1.0.0.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/array.prototype.toreversed_1.0.0_1648735753304_0.26860252818377806"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-03-31T14:49:31.438Z","publish_time":1648735753443,"_cnpm_publish_time":1648735753443}},"readme":"# array.prototype.toreversed <sup>[![Version Badge][npm-version-svg]][package-url]</sup>\n\n[![dependency status][deps-svg]][deps-url]\n[![dev dependency status][dev-deps-svg]][dev-deps-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 `Array.prototype.toReversed` 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.es/proposal-change-array-by-copy/#sec-array.prototype.toReversed).\n\nBecause `Array.prototype.toReversed` depends on a receiver (the `this` value), the main export takes the array to operate on as the first argument.\n\n## Getting started\n\n```sh\nnpm install --save array.prototype.toreversed\n```\n\n## Usage/Examples\n\n```js\nvar toReversed = require('array.prototype.toreversed');\nvar assert = require('assert');\n\nvar arr = [0, 1, 2, 3, 4, 5];\n\nvar results = toReversed(arr);\n\nassert.deepEqual(results, [5, 4, 3, 2, 1, 0]);\nassert.deepEqual(arr, [0, 1, 2, 3, 4, 5]);\n```\n\n```js\nvar toReversed = require('array.prototype.toreversed');\nvar assert = require('assert');\n/* when Array#toReversed is not present */\ndelete Array.prototype.toReversed;\nvar shimmed = toReversed.shim();\n\nassert.equal(shimmed, toReversed.getPolyfill());\nassert.deepEqual(arr.toReversed(), toReversed(arr));\n```\n\n```js\nvar toReversed = require('array.prototype.toreversed');\nvar assert = require('assert');\n/* when Array#toReversed is present */\nvar shimmed = toReversed.shim();\n\nassert.equal(shimmed, Array.prototype.toReversed);\nassert.deepEqual(arr.toReversed(), toReversed(arr));\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[package-url]: https://npmjs.org/package/array.prototype.toreversed\n[npm-version-svg]: https://versionbadg.es/es-shims/Array.prototype.toReversed.svg\n[deps-svg]: https://david-dm.org/es-shims/Array.prototype.toReversed.svg\n[deps-url]: https://david-dm.org/es-shims/Array.prototype.toReversed\n[dev-deps-svg]: https://david-dm.org/es-shims/Array.prototype.toReversed/dev-status.svg\n[dev-deps-url]: https://david-dm.org/es-shims/Array.prototype.toReversed#info=devDependencies\n[npm-badge-png]: https://nodei.co/npm/array.prototype.toreversed.png?downloads=true&stars=true\n[license-image]: https://img.shields.io/npm/l/array.prototype.toreversed.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/array.prototype.toreversed.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=array.prototype.toreversed\n","_attachments":{},"homepage":"https://github.com/es-shims/Array.prototype.toReversed#readme","bugs":{"url":"https://github.com/es-shims/Array.prototype.toReversed/issues"},"license":"MIT"}