fix countouring 'tails' and empty slices

This commit is contained in:
Stewart Allen 2020-11-18 10:06:25 -05:00
commit 4d592ea309
2 changed files with 5 additions and 2 deletions

View file

@ -194,7 +194,10 @@
const mark = UTIL.time();
const rarr = [];
z.forEach((zv,zi) => {
rarr.push(this.slice(zv, opt, zi, z.length, mark));
const data = this.slice(zv, opt, zi, z.length, mark);
if (data) {
rarr.push(data);
}
});
return rarr;
}