{"name":"array-slice-x","version":"4.0.7","description":"Cross-browser array slicer.","homepage":"https://github.com/Xotic750/array-slice-x","author":{"name":"Graham Fairweather","email":"xotic750@gmail.com"},"copyright":"Copyright (c) 2017","keywords":["Array","slice","module","javascript","nodejs","browser"],"module":"dist/array-slice-x.esm.js","main":"dist/array-slice-x.js","scripts":{"build:esm":"mkdirp dist && babel -s true --env-name esm src/array-slice-x.js -o dist/array-slice-x.esm.js","build:base":"webpack --bail --progress --profile --colors","build":"npm run build:esm && cross-env NODE_ENV=production npm run build:base --","build:dev":"npm run build:base --","clean":"rimraf dist && npm run clean:coverage","clean:coverage":"rimraf __tests__/coverage","lint":"eslint -f 'node_modules/eslint-friendly-formatter' --ext .js .","lint-fix":"npm run lint -- --fix","report":"npm run build -- --env.report","report:dev":"npm run build:dev -- --env.report","security":"npm audit","security-fix":"npm run security -- fix","start":"nodemon --exec \"npm run build\" --watch src","test":"npm run clean:coverage && jest","test:ci":"npm run test -- --ci --maxWorkers=2","test:coverage":"npm run test -- --coverage"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/Xotic750/array-slice-x.git"},"bugs":{"url":"https://github.com/Xotic750/array-slice-x/issues"},"dependencies":{"array-like-slice-x":"^2.0.9","attempt-x":"^2.0.7","cached-constructors-x":"^2.0.8","is-arguments":"^1.0.4","is-array-x":"^2.0.8","is-string":"^1.0.4","to-object-x":"^2.0.5"},"devDependencies":{"@babel/cli":"^7.5.0","@babel/core":"^7.5.4","@babel/node":"^7.5.0","@babel/plugin-proposal-class-properties":"^7.5.0","@babel/plugin-syntax-dynamic-import":"^7.2.0","@babel/plugin-syntax-export-default-from":"^7.2.0","@babel/plugin-syntax-export-namespace-from":"^7.2.0","@babel/plugin-transform-property-mutators":"^7.2.0","@babel/plugin-transform-runtime":"^7.5.0","@babel/preset-env":"^7.5.4","@babel/runtime":"^7.5.4","@prorenata/eslint-config-vue":"^1.13.6","@types/jest":"^24.0.15","@types/node":"^12.6.6","babel-core":"^7.0.0-0","babel-eslint":"^10.0.2","babel-loader":"^8.0.6","babel-plugin-lodash":"^3.3.4","caniuse-lite":"^1.0.30000984","chalk":"^2.4.2","concurrently":"^4.1.1","cross-env":"^5.2.0","eslint":"=5.16.0","eslint-config-airbnb-base":"^13.2.0","eslint-config-prettier":"^6.0.0","eslint-friendly-formatter":"^4.0.1","eslint-import-resolver-webpack":"^0.11.1","eslint-loader":"^2.2.1","eslint-plugin-babel":"^5.3.0","eslint-plugin-compat":"^3.3.0","eslint-plugin-css-modules":"^2.11.0","eslint-plugin-eslint-comments":"^3.1.2","eslint-plugin-html":"^6.0.0","eslint-plugin-import":"^2.18.0","eslint-plugin-jest":"^22.9.0","eslint-plugin-jsdoc":"^15.5.2","eslint-plugin-json":"^1.4.0","eslint-plugin-lodash":"^5.1.0","eslint-plugin-no-use-extend-native":"^0.4.1","eslint-plugin-prefer-object-spread":"^1.2.1","eslint-plugin-prettier":"^3.1.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-sort-class-members":"^1.5.0","eslint-plugin-switch-case":"^1.1.2","eslint-plugin-vue":"^5.2.3","friendly-errors-webpack-plugin":"^1.7.0","identity-obj-proxy":"^3.0.0","jest":"^24.8.0","jest-cli":"^24.8.0","jest-file":"^1.0.0","jsdoc-to-markdown":"^5.0.0","lodash":"^4.17.14","lodash-webpack-plugin":"^0.11.5","mkdirp":"^0.5.1","node-notifier":"^5.4.0","nodemon":"^1.19.1","prettier":"=1.14.3","rimraf":"^2.6.3","semver":"^6.2.0","source-map-loader":"^0.2.4","terser-webpack-plugin":"^1.3.0","typescript":"^3.5.3","webpack":"^4.36.0","webpack-bundle-analyzer":"^3.3.2","webpack-cli":"^3.3.6","webpack-merge":"^4.2.1"},"engines":{"node":">=8.11.4","npm":"6.4.1"},"browserslist":["> 1%","Explorer >= 9"],"gitHead":"72da50445c3088bc2ffc8ca79cdb0ce2d404f51d","_id":"array-slice-x@4.0.7","_npmVersion":"5.10.0","_nodeVersion":"8.11.4","_npmUser":{"name":"xotic750","email":"xotic750@gmail.com"},"dist":{"integrity":"sha512-+h0u/2HEMUOTUh2XhYURoDun6OPSwSOp+Tozz4n8+jYoTNoOPTb1uGJ+ULsAhmxUuBMnVcP7FeMzKrhCVk30kg==","shasum":"caa121c1c2b3314498419524bffb7f533d06958e","tarball":"http://registry-npm.ywwl.com/array-slice-x/download/array-slice-x-4.0.7.tgz","fileCount":10,"unpackedSize":239299,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdL1Q8CRA9TVsSAnZWagAAzUAQAI2reo5JBr/BwMc/6xBg\nPiPjhrmNnULkEi/NT/RJVRnj/m62fgpYLOsUUNKt8UW9CCUKGy0xUbIRVQeo\n/yi9/XBA+FVwYw+qxQAHvu2hj/d0eiuZLdMSz3xv7CqmGiJXcQugQ3M5BY6X\n/K5sG3Yw2FUOVzYWuxm/vZALOjF1yOddF6h+qBvth0AZ4X1LL4TzKA4hSMoU\no3EDg4XPebzceU06N1jJ40SRHDMQpbpMFFRTI8wlF9V0TU13gGgMCoOYI5DI\nRXEMhxxz4bWkwtoFa40cPh6wNP0V9zVw7sTKC+BazeSFurUW5Bif9ps9Iza6\n3mcQPeNW2vNFxbagKXY7TTv2b5pR/NayqL4kF6zKR+qhGkbqqJfJPvfzVfN4\nF1A9CjPtdsx5HWLb5v0D02/u/UxfkkViRwDv95tbv4yZqCrudQjJMuDle9wX\nGNbsbqyXRHAiN6hav7VsI69qR7+KqO1l4N0vAQjGTOpzaqDAPo0WDkmhGBpS\nL1a2artv9kcqHwcs9Lh+AEW8OgSv1d+mUBmfjopLqyGP9Am8PZxAQ0Z32GuE\n2cVyeyNEo6ITVMncYxqBEW1yTQnCtdTNNR+WKFCNfIA3+TA7SfFDEoMDCBje\nwP5LyWs4U9Vpv3z1CG3VgwOCv/Whw3nfPYz1aiAsqw7RZScLFGDBEjHZ2Rr1\n/UY7\r\n=h4o0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFhiNjO5IO6S/k4l++P6/8zHVpAiipn2+mqpjmOntMeNAiAm4NSZgJLfofgRenxb0UbpcQnGVMw6/tjQYkNkzEhOGw=="}],"size":54804,"noattachment":false,"key":"/array-slice-x/-/array-slice-x-4.0.7.tgz"},"maintainers":[{"name":"xotic750","email":"xotic750@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/array-slice-x_4.0.7_1563382843536_0.7532050925510565"},"_hasShrinkwrap":false,"readme":"<a\n  href=\"https://travis-ci.org/Xotic750/array-slice-x\"\n  title=\"Travis status\">\n<img\n  src=\"https://travis-ci.org/Xotic750/array-slice-x.svg?branch=master\"\n  alt=\"Travis status\" height=\"18\">\n</a>\n<a\n  href=\"https://david-dm.org/Xotic750/array-slice-x\"\n  title=\"Dependency status\">\n<img src=\"https://david-dm.org/Xotic750/array-slice-x/status.svg\"\n  alt=\"Dependency status\" height=\"18\"/>\n</a>\n<a\n  href=\"https://david-dm.org/Xotic750/array-slice-x?type=dev\"\n  title=\"devDependency status\">\n<img src=\"https://david-dm.org/Xotic750/array-slice-x/dev-status.svg\"\n  alt=\"devDependency status\" height=\"18\"/>\n</a>\n<a\n  href=\"https://badge.fury.io/js/array-slice-x\"\n  title=\"npm version\">\n<img src=\"https://badge.fury.io/js/array-slice-x.svg\"\n  alt=\"npm version\" height=\"18\">\n</a>\n<a\n  href=\"https://www.jsdelivr.com/package/npm/array-slice-x\"\n  title=\"jsDelivr hits\">\n<img src=\"https://data.jsdelivr.com/v1/package/npm/array-slice-x/badge?style=rounded\"\n  alt=\"jsDelivr hits\" height=\"18\">\n</a>\n<a\n  href=\"https://bettercodehub.com/results/Xotic750/array-slice-x\"\n  title=\"bettercodehub score\">\n<img src=\"https://bettercodehub.com/edge/badge/Xotic750/array-slice-x?branch=master\"\n  alt=\"bettercodehub score\" height=\"18\">\n</a>\n<a\n  href=\"https://coveralls.io/github/Xotic750/array-slice-x?branch=master\"\n  title=\"Coverage Status\">\n<img src=\"https://coveralls.io/repos/github/Xotic750/array-slice-x/badge.svg?branch=master\"\n  alt=\"Coverage Status\" height=\"18\">\n</a>\n\n<a name=\"module_array-slice-x\"></a>\n\n## array-slice-x\n\nCross-browser array slicer.\n\n<a name=\"exp_module_array-slice-x--module.exports\"></a>\n\n### `module.exports(array, [start], [end])` ⇒ <code>Array</code> ⏏\n\nThe slice() method returns a shallow copy of a portion of an array into a new\narray object selected from begin to end (end not included). The original\narray will not be modified.\n\n**Kind**: Exported function  \n**Returns**: <code>Array</code> - A new array containing the extracted elements.\n\n| Param   | Type                                      | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |\n| ------- | ----------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| array   | <code>Array</code> \\| <code>Object</code> | The array to slice.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |\n| [start] | <code>number</code>                       | Zero-based index at which to begin extraction. A negative index can be used, indicating an offset from the end of the sequence. slice(-2) extracts the last two elements in the sequence. If begin is undefined, slice begins from index 0.                                                                                                                                                                                                                                                                                                                                             |\n| [end]   | <code>number</code>                       | Zero-based index before which to end extraction. Slice extracts up to but not including end. For example, slice(1,4) extracts the second element through the fourth element (elements indexed 1, 2, and 3). A negative index can be used, indicating an offset from the end of the sequence. slice(2,-1) extracts the third element through the second-to-last element in the sequence. If end is omitted, slice extracts through the end of the sequence (arr.length). If end is greater than the length of the sequence, slice extracts through the end of the sequence (arr.length). |\n\n**Example**\n\n```js\nimport slice from 'array-slice-x';\n\nconst fruits = ['Banana', 'Orange', 'Lemon', 'Apple', 'Mango'];\nconsole.log(slice(fruits, 1, 3)); // citrus contains ['Orange','Lemon']\n```\n","publish_time":1563382843713,"_cnpm_publish_time":1563382843713,"dist-tags":{"latest":"4.2.2"}}