Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

lcd

import { lcd } from "https://raw.githubusercontent.com/JOTSR/Denum/master/mod.ts";

The least common denominator of a set of numbers is the smallest number that is a multiple of all the numbers in the set

function lcd<T extends number | bigint>(...n: T[]): T;
§
lcd<T extends number | bigint>(...n: T[]): T
[src]

§Type Parameters

§
T extends number | bigint
[src]

§Parameters

§
...n: T[] optional
[src]
  • The numbers to find the LCD of.

§Return Type

§

The least common multiple of the numbers in the array.