UNPKG

@newdash/newdash

Version:

javascript/typescript utility library

20 lines (19 loc) 527 B
/** * Subtract two numbers. * * @since 5.10.0 * @category Math * @param minuend The first number in a subtraction. * @param subtrahend The second number in a subtraction. * @returns Returns the difference. * @example * * ```js * subtract(6, 4) * // => 2 * ``` */ export declare function subtract(minuend: string, subtrahend: string): number; export declare function subtract(minuend: number, subtrahend: number): number; export declare function subtract<T>(minuend: T, subtrahend: T): T; export default subtract;