djangosnippets.org: Latest snippets tagged with 'array'https://djangosnippets.org/tags/array/2010-12-15T06:01:18.956213-06:00JavaScript implementation of Python xrange() builtin
2010-12-15T06:01:18.956213-06:00fish2000https://djangosnippets.org/snippets/2287/<p>I don't like not having the <code>range()/xrange()</code> in JavaScript &mdash; particularly when working with <a href="http://documentcloud.github.com/underscore/">Underscore.js</a> and other such libraries &mdash; so I wrote it.</p>
<p>It's not rocket science, but it might help make the world a slightly less annoying place for a couple of people.</p>
Freely redistributable