Strict greater than, greater than or equal, less than and less than or equal comparison operators

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Strict greater than, greater than or equal, less than and less than or equal comparison operators

Bouke Scheurwater
To be able to fully compare number operands with type checking,
wouldn't it be nice to have:

Strict greater than ( >== )
Strict greater than or equal ( >=== )
Strict less than ( <== )
and Stricht less than or equal ( <=== )

comparison operators which also check for type?

We'd avoid having to deal with cases like:

null > 0; // false
null == 0; // false
null >= 0; // true
_______________________________________________
es-discuss mailing list
[hidden email]
https://mail.mozilla.org/listinfo/es-discuss
Reply | Threaded
Open this post in threaded view
|

Re: Strict greater than, greater than or equal, less than and less than or equal comparison operators

Oriol _

_______________________________________________
es-discuss mailing list
[hidden email]
https://mail.mozilla.org/listinfo/es-discuss