• Get the least common multiple of 2 numbers

    Parameters

    • a: number
    • b: number

    Returns number

    Example

    import { number } from "@rjweb/utils"

    number.lcm(5, 10) // 10
    number.lcm(10, 15) // 30

    Since

    1.12.17

    Supports

    nodejs, browser