Added the Porter Stemmer module to improve searches. This doesn't deal with some...
[yaffs-website] / node_modules / uncss / node_modules / lodash / range.js
1 var createRange = require('./internal/createRange');
2
3 /**
4  * Creates an array of numbers (positive and/or negative) progressing from
5  * `start` up to, but not including, `end`. A step of `-1` is used if a negative
6  * `start` is specified without an `end` or `step`. If `end` is not specified
7  * it's set to `start` with `start` then set to `0`.
8  *
9  * **Note:** JavaScript follows the IEEE-754 standard for resolving
10  * floating-point values which can produce unexpected results.
11  *
12  * @static
13  * @memberOf _
14  * @category Util
15  * @param {number} [start=0] The start of the range.
16  * @param {number} end The end of the range.
17  * @param {number} [step=1] The value to increment or decrement by.
18  * @returns {Array} Returns the new array of numbers.
19  * @example
20  *
21  * _.range(4);
22  * // => [0, 1, 2, 3]
23  *
24  * _.range(-4);
25  * // => [0, -1, -2, -3]
26  *
27  * _.range(1, 5);
28  * // => [1, 2, 3, 4]
29  *
30  * _.range(0, 20, 5);
31  * // => [0, 5, 10, 15]
32  *
33  * _.range(0, -4, -1);
34  * // => [0, -1, -2, -3]
35  *
36  * _.range(1, 4, 0);
37  * // => [1, 1, 1]
38  *
39  * _.range(0);
40  * // => []
41  */
42 var range = createRange();
43
44 module.exports = range;