Skip to content

Commit

Permalink
optional size parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
sgratzl committed Jan 8, 2019
1 parent 43f5d1e commit ac31a24
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion demo/big.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
const arr = [];
const cats = ['c1', 'c2', 'c3'];
const cat2 = ['a1', 'a2'];
for (let i = 0; i < 1000000; ++i) {
const url = new URL(location.href);
const size = parseInt(url.searchParams.get('size') || '100000', 10);
for (let i = 0; i < size; ++i) {
arr.push({
label: 'Row ' + i,
number: Math.random() * 10,
Expand Down

0 comments on commit ac31a24

Please sign in to comment.