Last change
on this file since 8d391a1 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
380 bytes
|
Line | |
---|
1 | "use strict";
|
---|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
---|
3 | var reduce_1 = require("./reduce");
|
---|
4 | function toArrayReducer(arr, item, index) {
|
---|
5 | if (index === 0) {
|
---|
6 | return [item];
|
---|
7 | }
|
---|
8 | arr.push(item);
|
---|
9 | return arr;
|
---|
10 | }
|
---|
11 | function toArray() {
|
---|
12 | return reduce_1.reduce(toArrayReducer, []);
|
---|
13 | }
|
---|
14 | exports.toArray = toArray;
|
---|
15 | //# sourceMappingURL=toArray.js.map |
---|
Note:
See
TracBrowser
for help on using the repository browser.