intoli/slice
View on GitHub ↗ ★ 56 JavaScript
A JavaScript implementation of Python's negative indexing and extended slice syntax.
3 mentions on Hacker News by 1 person: 1 story, 2 comments · first 2018-06-26 · latest 2018-06-29
20082026
-
…yesterday. Maybe you would have better luck submitting the GitHub repository instead :-) [1]. [1] - https://github.com/intoli/slice
comment by foob · 2018-06-29 · in Recreating Python's Slice Syntax in JavaScript Using ES6 Proxies -
…with commas. So array[::-1] becomes array[[,,-1]] , array[3:] becomes array[[3,]] , etc. [1] - https://github.com/intoli/slice#for-people-who-know-python-a...
comment by foob · 2018-06-29 · in Recreating Python's Slice Syntax in JavaScript Using ES6 Proxies