lol, you’d really have to go out of your way in this scenario. First implement a way to get every single permutation of a list, then to ahead with the asinine solution. 😆 But yes, nice one! Your imagination is impressive.
lol, you’d really have to go out of your way in this scenario. First implement a way to get every single permutation of a list, then to ahead with the asinine solution. 😆 But yes, nice one! Your imagination is impressive.
So there’s yet another level of quirkery to this bullshit then, it seems. 😆 Nice digging! 🤝
I also noticed that if you surround the curlies with parentheses, you get the same again:
> eval('{} + []')
0
> eval('({}) + []')
'[object Object]'
I guess, yeah, that’ll do it. Although that’d probably be yet one or a few extra factors involving n.
My experiences in Rocket League can confirm. People being toxic in chat? Tell them something in chat back – get the “tg” to confirm French. Every goddamn time, always the French that are so rude.
Why? Why are they having such a bad day every day? Play a game to have fun ffs.
In node, I get the same result in both cases. "[object Object]"
It’s calling the toString()
method on both of them, which in the array case is the same as calling .join(",")
on the array. For an empty array, that results in an empty string added to "[object Object]"
at either end in the respective case in the picture.
Not sure how we’d get 0 though. Anybody know an implementation that does that? Browsers do that maybe? Which way is spec compliant? Number([])
is 0, and I think maybe it’s in the spec that the algorithm for type coercion includes an initial attempt to convert to Number before falling back to toString()
? I dunno, this is all off the top of my head.
Ah yes, mongo and document databases, forgot about those. Yeah those could be a pain to get data from if there’s no structure. 😅
as long as it’s organized in some way
Right? Organized, structured, same thing, or? A database can’t have no structure, right? I don’t even know how one would create such a database.
My mental model of it is a chain, yes. But you can define it however you like. It’s just steps in some direction.
Maybe a cake would suit someone the best.
Exactly. For every level of abstraction, the abstractor is the high level and the abstractee is the lower level. Those aren’t real words perhaps, but you get what I’m saying. It’s all relative along the chain of abstraction.
How in the hell does anyone f— up so bad they get O(n!²)? 🤯 That’s an insanely quickly-growing graph.
Curious what the purpose of that algorithm would have been. 😅
You can make an unstructured database? I thought the S in SQL stood for “structured”, that it was built into the language itself or something.
There’s a WHOM keyword in SQL?
This is the wildest question I’ve read in quite a while.
At least you got a few pages in, right?
Whoa. Eye-opening.
But you can read while behind the wheel of a Tesla 🙃
Offices having AC on when its 50[°F] outside also sucks.
That sucks for everyone, yeah.
When you say 50, you mean C or F?
I thought IIFE’s usually looked like
(function (...params) {})(...args)
. That’s not the latest way? To be honest I never used them much, at least not after arrow functions arrived.