Function root

  • Compute the specified root of a number.

    Parameters

    • x: number

      A number.

    • y: number

      The specifed root.

    Returns number

    Returns the yth root of a number.

    Since

    0.1.0

    Example

    root(8,3)
    // => 2