On Wed, Dec 1, 2010 at 2:45 AM, Peter van der Zee wrote:
> Has an operator like >== ever been proposed? So the "strict" relational
> operator that returns NaN if typeof left and right don't match.
> If so, why was it shot down? Bloat? Relatively useless?
Well, > is used more often than >=. How wo
Has an operator like >== ever been proposed? So the "strict" relational
operator that returns NaN if typeof left and right don't match.
If so, why was it shot down? Bloat? Relatively useless?
- peter
On Wed, Dec 1, 2010 at 1:45 AM, Brendan Eich wrote:
> On Nov 30, 2010, at 3:25 PM, Fyodorov Bga
On Nov 30, 2010, at 3:25 PM, Fyodorov Bga Alexander wrote:
> @apipkin have found logic bug
> `{valueOf: function(){ return 1 }} == {valueOf: function(){ return 1 }}`
> // false
> `{valueOf: function(){ return 1 }} >= {valueOf: function(){ return 1 }}`
> // true, ok
This is not a bug in ES5, altho
@apipkin have found logic bug
`{valueOf: function(){ return 1 }} == {valueOf: function(){ return 1 }}`
// false
`{valueOf: function(){ return 1 }} >= {valueOf: function(){ return 1 }}`
// true, ok
--
Alexander.
___
es-discuss mailing list
es-discuss@mozi
4 matches
Mail list logo