{"name":"array.prototype.slice","version":"1.0.0","description":"ES spec-compliant `Array.prototype.slice` 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","preversion":"auto-changelog","prelint":"evalmd README.md","lint":"eslint --ext=js,mjs .","postlint":"es-shim-api --bound","pretest":"npm run 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.slice.git"},"keywords":["javascript","ecmascript","polyfill","shim","array","slice","Array.prototype.slice","ES5","es-shim API"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"funding":{"url":"https://github.com/sponsors/ljharb"},"license":"MIT","bugs":{"url":"https://github.com/es-shims/Array.prototype.slice/issues"},"homepage":"https://github.com/es-shims/Array.prototype.slice#readme","engines":{"node":">= 0.4"},"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":"^1.0.3","has-strict-mode":"^1.0.1","has-symbols":"^1.0.3","npmignore":"^0.3.0","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.20.1","get-intrinsic":"^1.1.1","is-string":"^1.0.7"},"testling":{"files":"test/*.js"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"publishConfig":{"ignore":[".github/workflows"]},"gitHead":"c5bca4fa5c38bdb8b902352903566933e69db610","_id":"array.prototype.slice@1.0.0","_nodeVersion":"18.2.0","_npmVersion":"8.9.0","dist":{"integrity":"sha512-bEeKqFW+ZLHP5S9BlHI/t7G/rMtGVeIUQfoqzOLyiVVy5hQ27sGMu5Inh3d0dA5paVUPEu6IdH31lKMdH3JUtA==","shasum":"0425021cb731f1e49969522a8159b38d26338ca7","tarball":"http://registry-npm.ywwl.com/array.prototype.slice/download/array.prototype.slice-1.0.0.tgz","fileCount":17,"unpackedSize":17053,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDNfJ39FAd/3cBnRo8Ypd+2xNpf1zV7TWRhhGbS9kwdhAiEAv/8pupXXZvK/FybhYr576o+kx9ekC1e7Erxq1MwBdco="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJikAp9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoRMg//eqnpHFGvJa/wVRJRRe+eNwpSKVxe2kDboVjxjriB4W9ZjCuX\r\nrohEG1zLJpvT4diXLdKATJRPjcbIdyCnWFVKyBAzNtJCA3X2L9r+DwgxSsh9\r\njqqtohyJVXqit6XgmQO4pBgqEaDlWRYiNpqOfmh0bm7R6UE3OmxTVDqUc13z\r\ntg9fH/AHS9ZkG3pzbEGIGaHA5vRyF/ml7pnGzKA/pDK3bIV43u1uHi4ZBb2z\r\nFS1xDuyOpKWGbqzeBi2Qg71nxCPPqy40rFb4TcywhvGDLOP4Ler+dCww+G7H\r\nLMeEak0AqS5snG6yQVhERPXplBL9tO5mxM/h2vbdrePNA05lfguu8lj+Cz1k\r\nMPEHoVgtPJMYZeR51fq1ImbQ7Qa78IfGljbaIE6lva0vU6RvbYQF6kyeZlUB\r\nTxrP0M7JhQzT3PYvF8CvtaUeWOxkv9z51MjPA+eEvOW/P7lpO8v+BCP2mhzk\r\ngIooTH0mSHY2+jt4OpXJgfwd2XPBP3rJCcomxd7PCvEONXl+XfF6JORStO6U\r\nUfL1QQaTEw4GRiE3Jjo6raFdGRj4178LjO0eb+39CUvZMXARCJN0n+BYVpAi\r\n6Zw558/OecoWl5H1i+nnnZfRrNlKD3m/70m4OFQZg7f4WsDiOP7xAYyvJG6B\r\npAmnHwQSGC7m3oRPL5ZXJnY2xexIGK71Tko=\r\n=EIg3\r\n-----END PGP SIGNATURE-----\r\n","size":6180,"noattachment":false,"key":"/array.prototype.slice/-/array.prototype.slice-1.0.0.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/array.prototype.slice_1.0.0_1653607037392_0.7162311272777375"},"_hasShrinkwrap":false,"readme":"# array.prototype.slice <sup>[![Version Badge][npm-version-svg]][package-url]</sup>\n\n[![github actions][actions-image]][actions-url]\n[![coverage][codecov-image]][codecov-url]\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 ES spec-compliant `Array.prototype.slice` 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 [spec](https://tc39.es/ecma262/#sec-array.prototype.slice).\n\nBecause `Array.prototype.slice` depends on a receiver (the “this” value), the main export takes the array to operate on as the first argument.\n\n## Engines where this is needed\n\nNote: this list is not exhaustive.\n\n  - Safari 10 - 13\n  - Chrome 48+ ([v8 bug](https://bugs.chromium.org/p/v8/issues/detail?id=10381))\n  - node 6+\n\n## Example\n\n```js\nvar slice = require('array.prototype.slice');\nvar assert = require('assert');\n\nvar a = [1, 2, 3];\nassert.deepEqual(slice(a, 1, 2), [2]);\nassert.deepEqual(slice(a, -2), [2, 3]);\n```\n\n```js\nvar slice = require('array.prototype.slice');\nvar assert = require('assert');\n/* when Array#slice is not present */\ndelete Array.prototype.slice;\nvar shimmed = slice.shim();\nassert.equal(shimmed, slice.getPolyfill());\nassert.equal(shimmed, Array.prototype.slice);\nassert.deepEqual([1, 2, 3].slice(1, 2), slice([1, 2, 3], 1, 2));\n```\n\n```js\nvar slice = require('array.prototype.slice');\nvar assert = require('assert');\n/* when Array#slice is present */\nvar shimmed = slice.shim();\nassert.equal(shimmed, Array.prototype.slice);\nassert.deepEqual([1, 2, 3].slice(1, 2), slice([1, 2, 3], 1, 2));\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[package-url]: https://npmjs.org/package/array.prototype.slice\n[npm-version-svg]: https://versionbadg.es/es-shims/Array.prototype.slice.svg\n[deps-svg]: https://david-dm.org/es-shims/Array.prototype.slice.svg\n[deps-url]: https://david-dm.org/es-shims/Array.prototype.slice\n[dev-deps-svg]: https://david-dm.org/es-shims/Array.prototype.slice/dev-status.svg\n[dev-deps-url]: https://david-dm.org/es-shims/Array.prototype.slice#info=devDependencies\n[npm-badge-png]: https://nodei.co/npm/array.prototype.slice.png?downloads=true&stars=true\n[license-image]: https://img.shields.io/npm/l/array.prototype.slice.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/array.prototype.slice.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=array.prototype.slice\n[codecov-image]: https://codecov.io/gh/es-shims/Array.prototype.slice/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/es-shims/Array.prototype.slice/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/es-shims/Array.prototype.slice\n[actions-url]: https://github.com/es-shims/Array.prototype.slice/actions\n","publish_time":1653607037580,"_cnpm_publish_time":1653607037580,"dist-tags":{"latest":"1.0.3"}}