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

Bouke Scheurwater scheurwaterb at gmail.com
Sun Sep 10 20:40:58 UTC 2017


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


More information about the es-discuss mailing list