fix scan taking only 4 values

This commit is contained in:
Iuri Matias 2019-08-20 14:25:49 -04:00
parent 327c8a3ec0
commit 08ba467781
3 changed files with 0 additions and 9 deletions

View File

@ -5,9 +5,6 @@ let web3 = new Web3("ws://localhost:8545");
let myscan = scan((acc, curr) => {
acc.push(curr);
if (acc.length > 4) {
acc.shift();
}
return acc;
}, [])

View File

@ -5,9 +5,6 @@ let web3 = new Web3("ws://localhost:8545");
let myscan = scan((acc, curr) => {
acc.push(curr);
if (acc.length > 4) {
acc.shift();
}
return acc;
}, [])

View File

@ -5,9 +5,6 @@ let web3 = new Web3("ws://localhost:8545");
let myscan = scan((acc, curr) => {
acc.push(curr);
if (acc.length > 4) {
acc.shift();
}
return acc;
}, [])