Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,3 @@
|
|||
var a = new Array(n);
|
||||
for (var i = 0; i < n; i++)
|
||||
a[i] = new Foo();
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
(n => {
|
||||
|
||||
let nObjects = n => Array.from({
|
||||
length: n + 1
|
||||
}, (_, i) => {
|
||||
// optionally indexed object constructor
|
||||
return {
|
||||
index: i
|
||||
};
|
||||
});
|
||||
|
||||
return nObjects(6);
|
||||
|
||||
})(6);
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
[{"index":0}, {"index":1}, {"index":2}, {"index":3},
|
||||
{"index":4}, {"index":5}, {"index":6}]
|
||||
Loading…
Add table
Add a link
Reference in a new issue