1
0
Fork 0
mirror of synced 2024-07-11 01:06:04 +12:00

Display count

This commit is contained in:
Adria Navarro 2024-02-07 15:23:09 +01:00
parent b8ebeff71c
commit c103046012

View file

@ -9,7 +9,10 @@
string = JSON.stringify(data.slice(0, maxRowsToDisplay) || {}, null, 2)
// Display '...' at the end of the array
string = string.replace(/(}\n])/, "},\n ...\n]")
string = string.replace(
/(}\n])/,
`},\n ...${data.length - maxRowsToDisplay} further items\n]`
)
}
}
</script>