Closed txchen closed 7 years ago
var dq = new Denque() dq.push(1) dq.push(2) dq.push(3) dq.splice(0, 3) -> return undefined
I think it should have same behavior like Array.splice()
Maybe the bug is here? https://github.com/invertase/denque/blob/fbfa391c733cf66cb52505969716b178825a1bd3/index.js#L226
@noevents FYI.
@txchen Thanks! I've fixed it in #10.
@txchen @noevents I have merged the PR and published! Thanks
I think it should have same behavior like Array.splice()