New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

endless-slice

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

endless-slice

The slice method (Array.prototype.slice) but endless.

latest
Source
npmnpm
Version
1.0.0-beta.6
Version published
Weekly downloads
3
-25%
Maintainers
1
Weekly downloads
 
Created
Source

endless-slice

The slice method (Array.prototype.slice) but endless.

npm Build Status License

Instalation

npm add endless-slice

Usage

import slice from 'endless-slice';

const arr = [0, 1, 2, 3, 4, 5];

slice(arr); // => [0, 1, 2, 3, 4, 5]

slice(arr, 3); // => [3, 4, 5]

slice(arr, -2); // => [4, 5]

slice(arr, 2, 4); // => [2, 3]

slice(arr, -2, 2); // => [4, 5, 0, 1]

License

This project is licensed under Apache License, version 2.0.

Keywords

slice

FAQs

Package last updated on 29 Sep 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts