Message from JavaScript discussions

April 2019

— Lol

— 

const pick = keys => obj =>
Object.entries(obj)
.reduce((acc, [ key, value ]) =>
keys.includes(key)
? ({ ...acc, [key]: value })
: acc, {});

— const pick = keys => obj =>
keys.reduce((acc, key) =>
key in obj
? ({ ...acc, [key]: obj[key] })
: acc, {});

Message permanent page

— Cleaner version

— Just finished testing my random sim creator

— It's working magic

— I feel I just need to continue adding to the game not necessarily cleaning, I'm a noob so there will be always something to improve but what I want to achieve is to make it work

Message permanent page

— And then I go back to clean or rewrite it entirely

— Fancy

— If you use git, it will be easy for others to test and improve it

— Is it an irony?? 😁

— No