• Returns the divisors of a number.

    Parameters

    • num: number

      Number

    Returns number[]

    Example

    // Returns the array [1, 2, 4, ... , 250000, 500000, 1000000]
    const divisors = Chalkboard.numb.divisors(1000000);

Generated using TypeDoc