Make slice
handle case of no start provided.
This commit is contained in:
parent
6b1c55cff3
commit
fb598b0270
2 changed files with 11 additions and 2 deletions
|
@ -255,7 +255,7 @@ const Channel = function(length = 0) {
|
|||
return promise;
|
||||
},
|
||||
|
||||
slice: (start, end = Infinity) => {
|
||||
slice: (start = 0, end = Infinity) => {
|
||||
const output = Channel();
|
||||
|
||||
(async () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue