Skip to content

gcd

Computes the greatest common divisor.

ts
import { gcd } from '@vielzeug/toolkit';

gcd(54, 24); // 6