• Calculates the greatest common divisor between two or more numbers

    Example

    gcd(8, 36); // 4
    

    Example

    gcd(...[12, 8, 32]); // 4
    

    Parameters

    • Rest ...nums: number[]

    Returns number

Generated using TypeDoc