|
Last change
on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago |
|
Added visualizations
|
-
Property mode
set to
100644
|
|
File size:
253 bytes
|
| Line | |
|---|
| 1 | "use strict";
|
|---|
| 2 |
|
|---|
| 3 | Object.defineProperty(exports, "__esModule", {
|
|---|
| 4 | value: true
|
|---|
| 5 | });
|
|---|
| 6 | exports.default = merge;
|
|---|
| 7 | function* flatten(arrays) {
|
|---|
| 8 | for (const array of arrays) {
|
|---|
| 9 | yield* array;
|
|---|
| 10 | }
|
|---|
| 11 | }
|
|---|
| 12 | function merge(arrays) {
|
|---|
| 13 | return Array.from(flatten(arrays));
|
|---|
| 14 | } |
|---|
Note:
See
TracBrowser
for help on using the repository browser.