Function sqrt

Calculate the square root of each element in an array.

> sqrt([1, 4, 9, 16])
[1, 2, 3, 4]
  • Parameters

    • array: number[]

      The array of numbers.

    Returns number[]

    An array with the square root of each input element.