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.
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.
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.
People are down voting you when you are just expressing a feeling. I don't think that's right, but I hope you stay for the other great content on Lemmy and only go to Reddit for the missing stuff.
You mean like... all, all? How so? You mean like by asking you this question I'm "manipulating" you into answering it? If so that's a bit of a stretch in my personal opinion.
If I'm going straight, or right eventually, I wouldn't use the left lane to pass people when driving in the city. That's just lane surfing and not very safe driving.
I think the definition of manipulation is a bit odd here. Manipulation to me has a connotation of being nonconsensual. If both or all parties are voluntarily participating I wouldn't consider it manipulation.
That's too neutral or positive for my connotation. Mine includes something negative from the perspective of the one being manipulated. It might be incorrect but it's my connotation.
I don't think it's lane surfing if you're not changing lanes.
No, definitely not. It's only lane surfing if you're changing lanes to pass. Sorry, I thought that was the implication.
Anyway, this comment section has made me realize that it always just depends. Drive aware, keep safe distance, don't unnecessarily change lanes, let people pass (on the left) if they're going faster than you, etc.
Yes, agree completely. ❤️
The best advice I ever got about driving was "be predictable." I think if anyone really takes that to heart empathetically then it would be safer.
Exactly. That person understands traffic. So many times people will decelerate very rapidly to stop and give way for me (because it's a place where they are supposed to). But because they are coming at such speed, it doesn't look like they'll stop in time and it makes me react by breaking suddenly.
People need to look far, and break early and slowly. Be predictable and have clear car body language.
Imagine having such a tense relationship with your only neighboring country. Must suck pretty badly. Not being able to focus entirely on progressive stuff, but just preventing war all the time, almost.
Besides that, why are they even so close to the border in the first place when they know guns will be fired?
I'm 37. I've always hated superhero movies. More into horror and space/sci-fi.
Are we done here with you trying to berate me? You're not showing your best colors here, you know. These ad hominems are giving me second-hand embarrassment.
Well, I'm not trying to sound like anything. I'm just telling you a fact, that I believe in such and such. I think you've been watching too many movies if you think that someone merely telling you they "believe in something" is a goddamn movie trope... Like, come on.
Maybe when reading the text you're projecting your own version of what I'm saying with a bunch of intonation and body language and stuff that only exists in your head. But rest assured, I'm not acting all emotional and holding out my fist in the air when I say that I "believe in freedom and a right to truthful information". I'm merely telling you, with a deadpan look.
Most states rely on paper bureaucracy to ensure that the state can function and provide services. Paper bureaucracy has been part and parcel of how we maintain states and corporations since the Chinese invented the first paper bureaucracy systems of management 3000 years ago....
It scares me, honestly. The level of security for this to be viable is insane. Imagine some flaw or accident or attack that would erase me as a citizen. Scary thought.
Yeah... Then again I just use the DuckDuckGo bang !mdn and it searches MDN directly.
There's also devdocs.io which can be indispensable when using a lot of popular utility libraries and frameworks in the same project. Just having a single page with all the relevant docs is just a real blessing.
TIL that in Melbourne, a 1 : 1 000 000 000 scale model of the solar system includes a mini-Proxima-Centauri that is one-time-around-the-entire-world away at this scale. ( stkildamelbourne.com.au )
From the pdf:...
What everyone gets wrong about the 2015 Ashley Madison scandal ( www.newscientist.com )
Found via the author's Mastodon Post...
Spray and pray ( lemmy.world )
‘Julian Assange is free’: Wikileaks founder freed in deal with US ( www.aljazeera.com )
How to make an EV tire that won’t pollute the environment ( www.theverge.com )
JavaScript ( sh.itjust.works )
Systemd 256.1 Addresses Complaint That 'systemd-tmpfiles' Could Unexpectedly Delete Your /home Directory ( linux.slashdot.org )
The cycle of pants continues ( lemmy.world )
It's called attaining divinity ( sh.itjust.works )
Corpos being corpos ( sh.itjust.works )
Not everything can be done in constant time, that's O(k) ( sh.itjust.works )
Looking for new Site Admins ( forms.gle )
Hey everyone,...
Gaza's broken water system crippling children with sickness ( www.bbc.com )
Eight months of war have reduced nine-year-old Yunis Jumaa to skin and bone....
Sensory secrets of penis and clitoris unlocked after more than 150 years ( www.nature.com )
Lemons(?) of Lemmy, what is something that feels so obvious to you that you just get lowkey pissed at the world for not knowing?
Seoul says soldiers from North briefly crossed border ( www.dw.com )
Soldiers from South Korea's military fired warning shots after North Korean soldiers crossed the demarcation line....
Firefox Browser Blocks Anti-Censorship Add-Ons at Russia’s Request ( theintercept.com )
Mozilla, the maker of the popular web browser Firefox, said it received government demands to block add-ons that circumvent censorship....
Meta to use Instagram and Facebook posts from as far back as 2007 to train artificial intelligence tools ( www.abc.net.au )
best lemmy app for android
I've been looking around for lemmy apps but I just can't seem to find the best one if anyone has any suggestions they are welcome
Estonia | The Digital State ( youtu.be )
Most states rely on paper bureaucracy to ensure that the state can function and provide services. Paper bureaucracy has been part and parcel of how we maintain states and corporations since the Chinese invented the first paper bureaucracy systems of management 3000 years ago....
Why Is the World Ignoring a Looming Genocide in Sudan? ( foreignpolicy.com )
Aid workers fear a new disaster as militia forces close in on a major Darfur city....
Saw 37 the software Dev ( sh.itjust.works )
but stackoverflow how i fixy the brokey!