Ad
  • Custom User Avatar

    You can't convert an array to null. You can return whatever you want, if your array doesn't contain something correct, just return nul. Or better, try to catch when you should return null and leave the array.

  • Custom User Avatar

    Because your function returns [NaN, NaN, NaN] when it should return null.