Ad
  • Custom User Avatar

    Same here. The test could be improved by showing the type.

  • Default User Avatar

    I came across this same issue.

    Not sure if this will be applicable in your situation, but for single digit numbers (e.g., 0) my function was returning a string (“0”) rather than an integer (0). I fixed it by changing the way I was using the reduce method on the array.