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
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
See https://esdiscuss.org/topic/strict-relational-operators
--Oriol
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20170910/a7ea08bd/attachment.html>
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