MCPcopy
hub / github.com/NervJS/taro / convertPatternGroupToTask

Function convertPatternGroupToTask

tests/__tests__/bundled/globby/index.js:2260–2268  ·  view source on GitHub ↗
(base, positive, negative, dynamic)

Source from the content-addressed store, hash-verified

2258}
2259exports.convertPatternGroupsToTasks = convertPatternGroupsToTasks;
2260function convertPatternGroupToTask(base, positive, negative, dynamic) {
2261 return {
2262 dynamic,
2263 positive,
2264 negative,
2265 base,
2266 patterns: [].concat(positive, negative.map(utils.pattern.convertToNegativePattern))
2267 };
2268}
2269exports.convertPatternGroupToTask = convertPatternGroupToTask;
2270
2271

Callers 2

convertPatternsToTasksFunction · 0.85

Calls 2

concatMethod · 0.80
mapMethod · 0.65

Tested by

no test coverage detected