We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79d364e commit 6a7adcfCopy full SHA for 6a7adcf
frameworks/keyed/doohtml-lite/src/main.js
@@ -57,9 +57,11 @@ class Main {
57
}
58
59
buildData(count = DEFAULT_SIZE) {
60
- const data = [];
61
- for (let i = 0; i < count; i++) {
62
- data.push({id: this.ID++,label: adjectives[_random(lenA)] + " " + colours[_random(lenB)] + " " + nouns[_random(lenC)]})
+ const data = Array(count);
+ for (let i = 0; i < count; i=i+1) {
+ const label = `${adjectives[_random(lenA)]} ${colours[_random(lenB)]} ${nouns[_random(lenC)]}`
63
+ const id = this.ID++
64
+ data[i] = { id, label }
65
66
return data
67
0 commit comments