Last active
November 11, 2017 17:43
-
-
Save joegaudet/90ba9a7eaa8db3169e74f7983d7bb91d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Foo {}; | |
let foos = []; | |
let interval; | |
interval = setInterval(() => { | |
foos.push(new Foo()); | |
if(foos.length > 10000) { | |
clearInterval(interval); | |
console.log('done'); | |
} | |
}, 1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment