>> ["10", "10", "10", "10", "10"].map(parseFloat)
<- Array [ 10, 10, 10, 10, 10 ]
>> ["10", "10", "10", "10", "10"].map(parseInt)
<- Array [ 10, NaN, 2, 3, 4 ]
JS apologists and cucks will defend this.
>javascript
JS cucks CANNOT recover from this.
why does this happen btw?
>>54396148
ParseInt takes a second argument, a base, which silently gets passed the index of the array when it's called by map. Total violation of the principle of least surprise.
>>54396042
Javascript programmer here.
You win.
I accept my defeat unconditionally.
I will delete all my code and re-write everything in C.
So? Just don't use it then. There's are plenty of ways to do that.
At least it's not perl
php, not even once.class Cassandra\Rows implements \Countable ...
$rows = $session->execute(new Cassandra\SimpleStatement('SELECT * FROM empty_table'));
count($rows); // returns 1
$rows->count(); // returns 0
>>54396042
Will WebAssembly be an improvement or it is just a meme in the making?
>>54396515
No savings over minified JS.