Last change
on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
325 bytes
|
Line | |
---|
1 | /** PURE_IMPORTS_START _reduce PURE_IMPORTS_END */
|
---|
2 | import { reduce } from './reduce';
|
---|
3 | function toArrayReducer(arr, item, index) {
|
---|
4 | if (index === 0) {
|
---|
5 | return [item];
|
---|
6 | }
|
---|
7 | arr.push(item);
|
---|
8 | return arr;
|
---|
9 | }
|
---|
10 | export function toArray() {
|
---|
11 | return reduce(toArrayReducer, []);
|
---|
12 | }
|
---|
13 | //# sourceMappingURL=toArray.js.map
|
---|
Note:
See
TracBrowser
for help on using the repository browser.