COLLECTED BY
Organization:
Internet Archive
Focused crawls are collections of frequently-updated webcrawl data from narrow (as opposed to broad or wide) web crawls, often focused on a single domain or subdomain.
The Wayback Machine - https://web.archive.org/web/20201220222051/https://github.com/lodash/lodash/blob/master/range.js
Permalink
Cannot retrieve contributors at this time
44 lines (42 sloc)
1.08 KB
import createRange from './.internal/createRange.js'
/**
* Creates an array of numbers (positive and/or negative) progressing from
* `start` up to, but not including, `end`. A step of `-1` is used if a negative
* `start` is specified without an `end` or `step`. If `end` is not specified,
* it's set to `start`, and `start` is then set to `0`.
*
* **Note:** JavaScript follows the IEEE-754 standard for resolving
* floating-point values which can produce unexpected results.
*
* @since 0.1.0
* @category Util
* @param {number } [start=0] The start of the range.
* @param {number } end The end of the range.
* @param {number } [step=1] The value to increment or decrement by.
* @returns {Array } Returns the range of numbers.
* @see inRange, rangeRight
* @example
*
* range(4)
* // => [0, 1, 2, 3]
*
* range(-4)
* // => [0, -1, -2, -3]
*
* range(1, 5)
* // => [1, 2, 3, 4]
*
* range(0, 20, 5)
* // => [0, 5, 10, 15]
*
* range(0, -4, -1)
* // => [0, -1, -2, -3]
*
* range(1, 4, 0)
* // => [1, 1, 1]
*
* range(0)
* // => []
*/
const range = createRange ( )
export default range
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.