Ad
  • Custom User Avatar

    expected { pos: [ 2, 3 ], peaks: [ 3, 2 ] } to deeply equal { pos: [ 2 ], peaks: [ 3 ] }
    assert.deepEqual(pickPeaks([2,1,3,2,2,2,2,5,6]), {pos:[2], peaks:[3]});

    why?