|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
310 bytes
|
| Line | |
|---|
| 1 | define(['./_flatten'], function (_flatten) {
|
|---|
| 2 |
|
|---|
| 3 | // Flatten out an array, either recursively (by default), or up to `depth`.
|
|---|
| 4 | // Passing `true` or `false` as `depth` means `1` or `Infinity`, respectively.
|
|---|
| 5 | function flatten(array, depth) {
|
|---|
| 6 | return _flatten(array, depth, false);
|
|---|
| 7 | }
|
|---|
| 8 |
|
|---|
| 9 | return flatten;
|
|---|
| 10 |
|
|---|
| 11 | });
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.