Function: hasNaNValues()
hasNaNValues(
input):boolean
A function that checks if there is a value in the array that is NaN. or if the input is a number it just checks if it is NaN.
Parameters
• input: number | number[]
The input to check if it is NaN.
Returns
boolean
- True if the input is NaN, false otherwise.