Closed lrills closed 5 years ago
Version: 1.4.0
Though it's not referenced on document, but nagative index seem to be supported according to: https://github.com/invertase/denque/blob/2a4fb0bc1bef9d84c4b6f2d460c140a776f03ae5/index.js#L215
Minimum steps to reproduce:
q = new Denque() q.push(1) // 1 q.push(2) // 2 q.push(3) // 3 q.remove(-2,2) // [ 2, 3 ] q.length // 3
Forgot to reply here sorry, this is fixed and published to npm under version 1.4.1 now. Thanks.
Version: 1.4.0
Though it's not referenced on document, but nagative index seem to be supported according to: https://github.com/invertase/denque/blob/2a4fb0bc1bef9d84c4b6f2d460c140a776f03ae5/index.js#L215
Minimum steps to reproduce: