Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
eyas-ranjous committed May 30, 2023
1 parent 90e78ea commit 62d450c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ console.log(bidsQueue.pop()); // { id: 7, value: 8000 }
```

### remove
removes all elements that meet a criteria in O(n*log(n)) runtime and return a list of the removed elements.
removes all elements that meet a criteria in O(n*log(n)) runtime and returns a list of the removed elements.

```js
carsQueue.remove((car) => car.price === 35000); // [{ year: 2013, price: 35000 }]
Expand Down

0 comments on commit 62d450c

Please sign in to comment.