Do the usual npm install
npm install
To run the code for a particular lesson, just run:
npm start -- lesson-[number]
const main = async () => {
for (let item of items) {
const data = await myPromise(item);
console.log(data);
}
const results = await Promise.all(items.map(item => myPromise(item)));
console.log(results);
};
this
- arrow functions
- var / let / const
- for loop
- for / of
- for / in
- Array.prototype.forEach
- Array.prototype.filter
- Array.prototype.find
- Array.prototype.map
- Array.prototype.reduce
- Error handling
- for / loops
- Promise.all
- Throttling / Sequential execution
- require vs import
- partial imports
- export vs. module.exports
- tsconfig.json
- tslint
- Unbounce standard configs
- Object.assign
- Destructing assignments
- Array Spread Operator
- Object Spread Operator