pyslicer
v1.0.2
Published
A python like array slice for JavaScript
Downloads
6
Readme
Python Like Array Slicer For JavaScript
Simple module to emulate the Python array slicer in JavaScript
How to use it
pySlicer python like slice
Use a string separated by ':' with this format 'start:stop:step' like function call if not provided they will default to 0, array.length, 1
import defineArray from "pyslicer"
/*or const defineArray = require("pyslicer")*/
let array = defineArray([1,2,3,5,6,7])
let sliced_array = array['1:2:3']