1 | 'use strict';
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | function factory(type, config, load, typed) {
|
10 | var range = load(require('../../function/matrix/range'));
|
11 | return typed('range', {
|
12 | '...any': function any(args) {
|
13 | var lastIndex = args.length - 1;
|
14 | var last = args[lastIndex];
|
15 |
|
16 | if (typeof last !== 'boolean') {
|
17 |
|
18 | args.push(true);
|
19 | }
|
20 |
|
21 | return range.apply(null, args);
|
22 | }
|
23 | });
|
24 | }
|
25 |
|
26 | exports.name = 'range';
|
27 | exports.path = 'expression.transform';
|
28 | exports.factory = factory; |
\ | No newline at end of file |