In which year was the triple equals sign introduced to JavaScript?
Bonus points for
==
===
Object.is
and any equality checks that I am missing.
In which year was the triple equals sign introduced to JavaScript?
Bonus points for
==
===
Object.is
and any equality checks that I am missing.
According to the ECMA Standards, as found on: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Comparison_Operators#Specifications
Object.is was introduced in Standard ECMA-262 6th Edition / June 2015
===
was introduced in the 3rd edition of ECMAScript, aka JavaScript 1.3
.
ECMAScript 3rd Edition (ECMA-262) Standard
Adds === and !== operators.
Implemented in JavaScript 1.3 which is dated December 1999 on Standard ECMA-262 3rd Edition
I suspect ==
predates ECMAScript standards, but the closest standard i can find is
Standard ECMA-262 June 1997 aka JavaScript 1.0
However, this is merely the date they were standardized, if they existed pre-standardization, the dates may be incorrect.