« first day (3793 days earlier)      last day (1380 days later) » 
00:00 - 22:0022:00 - 00:00

JK.
JK.
22:00
{...foo} doesnt work either (makes sense, its not an array or map)
so given props = {foo, bar, test, x, y}, {...props} would do it
JK.
JK.
Ah yeah, I did think about <MyThing {...this.props} /> but that will pass all props from the parent component. Many will not be used by MyThing, isnt that ineffiecent?
:shrug:
probably wouldn't be the first inefficient thing done in the name of making the code easier to manage
JK.
JK.
Also for future readers of the code, they cant easily see that I only wanted to pass foo, bar into MyThing and not all of the props available
i wouldn't pass it all the things
22:04
is it just me or does @JK.'s profile pic look like a swastika
(not to his fault, ik its default)
JK.
JK.
Yikes. default pic only cos I havent changed it. Not my fault
@JK. no
that's fine
many of the default pics have a somewhat similar counter-clockwise design with squares/rectangles that can resemble whatever you're looking for it to resemble that also happens to be a counterclockwise design
but it's annoying
JK.
JK.
Updated, will flow thru sometime soonish
22:06
you can prob do:
{...{ foo, bar, test}}
@TobyHarnish i challenge you to port the python interpreter to js
someone beat you to it pypyjs.org/index.html
JK.
JK.
Yeah that works thanks heaps, even if is a bit ugly. I'll need to consider which one will we should use
 
1 hour later…
23:13
Hmm. Is there a function way of running an array of promises sequentially?
const someArray = [3, 4, 5, 6, 7];
let p = Promise.resolve(0);
someArray.forEach(num => {
   p = p.then(sum => sum + num)
});
p.then(console.log);
something like that but functionally
nvm found it
76
A: How to execute promises sequentially, passing the parameters from an array?

Ry-You can make the repeated application of .then into a fold pretty neatly if you’re okay with creating as many promises as array elements as is the case in the question: myArray.reduce( (p, x) => p.then(_ => myPromise(x)), Promise.resolve() ) but an async function, for example, doesn’t ...

i mean
yeah that answer is what i was gonna suggest
simple for loop
00:00 - 22:0022:00 - 00:00

« first day (3793 days earlier)      last day (1380 days later) »