From 8de38a5a67d3f837c3356c74733dff3de27529a5 Mon Sep 17 00:00:00 2001 From: kgryte Date: Mon, 2 Mar 2015 23:28:30 -0800 Subject: [PATCH] [UPDATE] README. --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 8e633a7..d0aa9cd 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,9 @@ Generates a linearly spaced index `array` from a subsequence `string`. `len` spe ``` javascript var arr = indexspace( '[:]', 5 ); // returns [ 0, 1, 2, 3, 4 ] + +arr = indexspace( '[:]', 0 ); +// returns [] ``` The subsequence `string` syntax is similar to Python's [slice](https://docs.python.org/2/tutorial/introduction.html) notation.