JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3662824
  • Score
    100M100P100Q248452F

Array-slice method. Slices `array` from the `start` index up to, but not including, the `end` index.

Package Exports

  • array-slice

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (array-slice) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

array-slice NPM version

Array-slice method. Slices array from the start index up to, but not including, the end index.

This function is used instead of Array#slice to support node lists in IE < 9 and to ensure dense arrays are returned.

Install

Install with npm

npm i array-slice --save

Usage

.exports

* `array` **{Array}**: The array to slice.    
* `start` **{number}**: The start index.    
* `end` **{number}**: The end index.    
* `returns` **{Array}**: Returns the slice of `array`.  

slice(arr, 3, 6);
//=> ['e', 'f', 'g']

Author

Jon Schlinkert

License

Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license


This file was generated by verb-cli on October 06, 2014.