![](/static/253f0d9b/assets/icons/icon-96x96.png)
![](https://programming.dev/pictrs/image/170721ad-9010-470f-a4a4-ead95f51f13b.png)
(30,27): error TS7006: Parameter 'fuck' implicitly has an 'any' type.
(30,27): error TS7006: Parameter 'fuck' implicitly has an 'any' type.
This is due to the default sorter in JavaScript sorting by the string value. The reason for that is that this won’t create errors at runtime. Since JavaScript does not have types, this is the safest way of sorting.
This works:
const unsorted = [1, 100000, 21, 30, 4]
const sorted = unsorted.sort((a, b) => a - b)
That site lists my account as “Banned for Vote manipulation”.
That’s… Interesting.
What a great post. Thank you for sharing it and all the best for you!
A racing game that has a very nice track builder and is very open to modding. Its focus is on the individual driver and the time they achieve on a track.
Flying for hundreds of meters, drifting under water, going at high speeds through multiple loopings, sliding on ice and so much more is totally possible with Trackmania.
Try it, the base game is free and their pricing for online services and cups is totally fine.
It’s not. The default sorter does that, because that way it can sort pretty much anything without breaking at runtime. You can overwrite it easily, though. For the example above you could simply do it like this:
[3, 1, 10].sort((a, b) => a - b)
Returns: [
]
JS !== Java
Try Javascript some day!
Try Javascript today!
But I love drugs.
deleted by creator
deleted by creator
deleted by creator
You are right. It’s a joke because there is absolutely no affordable housing to be found in Germany.
I would like to ask a similar question:
I very much like the “the beauty and the beast” - styled metal. That’s at least what I read online sometime what it’s called.
The mix of a male voice growling and a female voice singing melodic kinda does it for me, but so far I had very little luck finding stuff that fits, actually just a few songs.
Any recommendations?