1.0.2 • Published 3 years ago

pyslicer v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

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']
1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago