Added length filter
This commit is contained in:
parent
c55f3d7bd9
commit
6c89ca79fe
|
@ -58,7 +58,8 @@ export async function get(
|
|||
let d: [string, number, number][][] = data;
|
||||
res.end(
|
||||
JSON.stringify(
|
||||
d.map((values, idx) => {
|
||||
d
|
||||
.map((values, idx) => {
|
||||
return values.filter(value => {
|
||||
return (
|
||||
idx === 0 ||
|
||||
|
@ -72,6 +73,7 @@ export async function get(
|
|||
);
|
||||
});
|
||||
})
|
||||
.filter(v => v.length > 0)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue