biofriction-wp-theme/node_modules/flagged-respawn/lib/remover.js

14 lines
305 B
JavaScript
Raw Normal View History

2021-10-26 14:18:09 +02:00
var isV8flags = require('./is-v8flags');
module.exports = function(flags, argv) {
var args = argv.slice(0, 1);
for (var i = 1, n = argv.length; i < n; i++) {
var arg = argv[i];
var flag = arg.split('=')[0];
if (!isV8flags(flag, flags)) {
args.push(arg);
}
}
return args;
};