(left, right, inclusive)
| 254 | })()) |
| 255 | |
| 256 | function __range__ (left, right, inclusive) { |
| 257 | const range = [] |
| 258 | const ascending = left < right |
| 259 | const end = !inclusive ? right : ascending ? right + 1 : right - 1 |
| 260 | for (let i = left; ascending ? i < end : i > end; ascending ? i++ : i--) { |
| 261 | range.push(i) |
| 262 | } |
| 263 | return range |
| 264 | } |
| 265 | function __guard__ (value, transform) { |
| 266 | return (typeof value !== 'undefined' && value !== null) ? transform(value) : undefined |
| 267 | } |