Function cube

  • Compute the value of a base expression cubed.

    Parameters

    • x: number

      The base value of the expression.

    Returns number

    Returns the base expression cubed.

    Since

    0.5.0

    Example

    cube(3)
    // => 27