{"version":3,"file":"negate-D2skkpOf.cjs","names":[],"sources":["../src/functions/negate/negate.ts"],"sourcesContent":["import type { AnyFunction } from '../../types/_internal';\n\n/**\n * Returns a new function that negates the result of the input function.\n * @param func The input function to negate.\n * @returns A new function that negates the result of the input function.\n * @example\n * ```ts\n * const isEven = (num: number) => num % 2 === 0;\n * const isOdd = negate(isEven);\n * isOdd(1); // true\n * isOdd(2); // false\n * ```\n */\nexport function negate<Func extends AnyFunction<boolean>>(\n  func: Func\n): (...args: Parameters<Func>) => boolean {\n  return (...args: Parameters<Func>) => {\n    const result = func(...args);\n    return !result;\n  };\n}\n"],"mappings":";;;;;;;;;;;;;;AAcA,SAAgB,OACd,MACwC;AACxC,SAAQ,GAAG,SAA2B;AAEpC,SAAO,CADQ,KAAK,GAAG,KAAK"}