mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-11 00:41:07 +03:30
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;
|