Function square

  • Compute the value of a base expression squared.

    Parameters

    • x: number

      The base value of the expression.

    Returns number

    Returns the base expression squared.

    Since

    0.5.0

    Example

    square(4)
    // => 16