Ad
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Has anyone run into an issue where the first test always works but every test after returns "NaN"? Its like its storing a value from the previous test run somewhere in my function.

  • Custom User Avatar

    My code works in other environments but I get this error in codewars

    expected { pos: [2,3], peaks: [3,2] } to deeply equal { pos: [2], peaks [3] }

    I don't even know what test this is. Any ideas?

  • Custom User Avatar

    Can you explain how you brought an array into the function without 'let arr = []'?