JSPM

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

Shallow copy array or portion of array.

Package Exports

  • @f/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 (@f/slice) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

slice

Build status Git tag NPM version Code style

Shallow copy of array or portion of array.

Installation

$ npm install @f/slice

Usage

var slice = require('@f/slice')

slice([1, 2], 1) // => 2

API

slice(array, begin, end)

  • array - source array
  • begin - beginning of copy
  • end - end of copy

Returns: copy of array

License

MIT