mirror of
https://github.com/primer/css.git
synced 2025-01-06 05:33:07 +03:00
11 lines
223 B
JavaScript
11 lines
223 B
JavaScript
module.exports = function filterBy(fn) {
|
|
return (files, metal, done) => {
|
|
for (const [key, file] of Object.entries(files)) {
|
|
if (!fn(file, key, metal)) {
|
|
delete files[key]
|
|
}
|
|
}
|
|
done()
|
|
}
|
|
}
|