mirror of
https://github.com/henrywhitaker3/Speedtest-Tracker.git
synced 2025-12-25 06:49:15 +01:00
10 lines
324 B
JavaScript
Vendored
10 lines
324 B
JavaScript
Vendored
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
/**
|
|
* Flatten nested arrays (max depth is 2) into a non-nested array of non-array items.
|
|
*/
|
|
function flatten(items) {
|
|
return items.reduce(function (collection, item) { return [].concat(collection, item); }, []);
|
|
}
|
|
exports.flatten = flatten;
|