Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in type-coercion

Function return type not enforced

If [] is [] and Array.prototype is [] why doesn't ([] == Array.prototype)

How to coerce type of ActiveRecord attribute returned by :select phrase on joined table?

Why is `'\t\n ' == false` in JavaScript?

javascript type-coercion

Understanding type coercion in JavaScript

Why do some non-empty strings evaluate to "false" in JavaScript?

javascript type-coercion

Why, in JavaScript, does '3 instanceof Number' == false, but '3..method()' will call Number.prototype.method?

javascript type-coercion

Understanding JavaScript hoisting and truthy & falsy

Equality comparison between Date and number doesn't work

Create String list in Groovy

Why does (int 10) produce a Long instance?

How does PHP compare strings with comparison operators?

How to flatten a list to a list without coercion?

In Ruby, how does coerce() actually work?