flow like the river
This commit is contained in:
commit
013fe673f3
42435 changed files with 5764238 additions and 0 deletions
9
BACK_BACK/node_modules/fast-glob/out/utils/array.js
generated
vendored
Executable file
9
BACK_BACK/node_modules/fast-glob/out/utils/array.js
generated
vendored
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
"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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue