@f/slice

Shallow copy array or portion of array.

Stats

StarsIssuesVersionUpdatedCreatedSize
@f/slice
001.1.36 years ago6 years agoMinified + gzip package size for @f/slice in KB

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

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.