Skip to content

Instantly share code, notes, and snippets.

@slykar
Created August 9, 2019 14:09
Show Gist options
  • Save slykar/3f0af994d25c14395a1825039ee4e7a4 to your computer and use it in GitHub Desktop.
Save slykar/3f0af994d25c14395a1825039ee4e7a4 to your computer and use it in GitHub Desktop.
// do something 10 times
'.'.repeat(10).split('').forEach(dot => doSomething());
// add 7 more `{}` to `rows`
const rows = [{}, {}];
Array(7).fill({}).map(o => rows.push({}))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment