UNPKG

patch-pulse

Version:

Check for outdated npm dependencies

11 lines 389 B
/** * Checks if any of the given flags are present in args * @param args - The arguments to check * @param flags - The flags to check for * @returns True if any of the flags are present in args, false otherwise */ export function hasAnyFlag({ args, flags, }) { const flagSet = new Set(flags); return args.some(arg => flagSet.has(arg)); } //# sourceMappingURL=hasAnyFlag.js.map