Closed rlidwka closed 6 years ago
Trying to add multiple elements to the array. Found that splice doesn't work there:
var a; a = new (require('denque'))([]) a.splice(0,0, 1,2,3,4,5) console.log(a.toArray()) // [] a = [] a.splice(0,0, 1,2,3,4,5) console.log(a) // [ 1, 2, 3, 4, 5 ]
Splice stops on this empty array check.
@rlidwka ah ye I see the issue, thanks for reporting it - will push a fix + tests for it in the next day or so.
Trying to add multiple elements to the array. Found that splice doesn't work there:
Splice stops on this empty array check.