Ad
  • Custom User Avatar

    Curious why you decided to place the slice after the filter call?
    Filter already returns a new Array, so if you are looking to avoid mutating the data in 'prices', the slice isn't necessary. Thanks :)