WIP - add extractor, generate snippet_data
This commit is contained in:
9
node_modules/fast-glob/out/utils/array.js
generated
vendored
Normal file
9
node_modules/fast-glob/out/utils/array.js
generated
vendored
Normal 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;
|
||||
Reference in New Issue
Block a user