@micro-js/slice

1.0.0 • Public • Published

slice

Build status Git tag NPM version Code style

Shallow copy of array or portion of array.

Installation

$ npm install @micro-js/slice

Usage

var slice = require('@micro-js/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

Readme

Keywords

none

Package Sidebar

Install

npm i @micro-js/slice

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • micro-js