UNPKG

putout

Version:

🐊 Pluggable and configurable code transformer with built-in ESLint, Babel and support of js, jsx, typescript, flow, markdown, yaml and json

13 lines (9 loc) 240 B
export function dropInteractive(argv) { const result = []; for (const arg of argv) { if (arg === '-i' || arg === '--interactive') continue; result.push(arg); } return result; }