• Get the triangle number of a number

    Parameters

    • input: number

    Returns number

    Example

    import { number } from "@rjweb/utils"

    number.triangle(5) // 15
    number.triangle(10) // 55

    Since

    1.12.17

    Supports

    nodejs, browser