Skip to content

Commit d1de047

Browse files
committed
feat(internal): add collect() for array input
1 parent 0b2ab03 commit d1de047

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/internals.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,16 @@ function parseConfig(config = {}) {
9696
return config;
9797
}
9898

99+
function collect(val, memo) {
100+
memo.push(val);
101+
102+
return memo;
103+
}
104+
99105
module.exports = {
100106
preprocessArgs,
101107
fileExists,
102108
parseConfigActions,
103-
parseConfig
109+
parseConfig,
110+
collect
104111
};

0 commit comments

Comments
 (0)