YouTube video: https://www.youtube.com/watch?v=r-8isv_TnVA
Stackblitz: https://stackblitz.com/edit/js-mbehz9?file=index.js
| --- | |
| name: plan-exit-review | |
| version: 2.0.0 | |
| description: | | |
| Review a plan thoroughly before implementation. Challenges scope, reviews | |
| architecture/code quality/tests/performance, and walks through issues | |
| interactively with opinionated recommendations. | |
| allowed-tools: | |
| - Read | |
| - Grep |
YouTube video: https://www.youtube.com/watch?v=r-8isv_TnVA
Stackblitz: https://stackblitz.com/edit/js-mbehz9?file=index.js
| let map = new Map(); | |
| map.set("a", 1); | |
| map.set("b", 2); | |
| map.set("c", 3); | |
| let obj = Array.from(map).reduce((obj, [key, value]) => ( | |
| Object.assign(obj, { [key]: value }) // Be careful! Maps can have non-String keys; object literals can't. | |
| ), {}); | |
| console.log(obj); // => { a: 1, b: 2, c: 3 } |