UNPKG

eslint-plugin-de-morgan

Version:

ESLint plugin for transforming negated boolean expressions via De Morgan’s laws

9 lines (8 loc) 286 B
/** * Wraps a string in parentheses. * * @param text - The string to wrap. * @param [condition] - Whether to apply the wrapping. * @returns The string, wrapped in parentheses if condition is true. */ export declare function parenthesize(text: string, condition?: boolean): string