Make slice handle case of no start provided.

This commit is contained in:
David Braun 2019-04-24 10:51:00 -04:00
parent 6b1c55cff3
commit fb598b0270
No known key found for this signature in database
GPG key ID: 87EC41ADF710B7E2
2 changed files with 11 additions and 2 deletions

View file

@ -255,7 +255,7 @@ const Channel = function(length = 0) {
return promise;
},
slice: (start, end = Infinity) => {
slice: (start = 0, end = Infinity) => {
const output = Channel();
(async () => {