Skip to content

Commit d75ba72

Browse files
Vihan BhargavaAurelioDeRosa
Vihan Bhargava
authored andcommitted
Types: Changed occurrences of == to ===
Fixes gh-871 Closes gh-854
1 parent 1fd8912 commit d75ba72

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pages/Types.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -234,11 +234,11 @@ <h3 id="NaN_and_Infinity"> NaN and Infinity </h3>
234234
</code></pre>
235235
<p>Note that NaN compares in a strange way:
236236
</p>
237-
<pre><code data-lang="javascript">NaN == NaN // false (!)
237+
<pre><code data-lang="javascript">NaN === NaN // false (!)
238238
</code></pre>
239239
<p>But:
240240
</p>
241-
<pre><code data-lang="javascript">Infinity == Infinity // true
241+
<pre><code data-lang="javascript">Infinity === Infinity // true
242242
</code></pre>
243243
<h3 id="Integer"> Integer </h3>
244244
<p>An integer is a plain Number type, but whenever explicitly mentioned, indicates that a non-floating-point number is expected.
@@ -320,7 +320,7 @@ <h3 id="Prototype"> Prototype </h3>
320320
<pre><code data-lang="javascript">var form = $("#myform");
321321
console.log( form.clearForm ); // undefined
322322

323-
// jQuery.fn == jQuery.prototype
323+
// jQuery.fn === jQuery.prototype
324324
jQuery.fn.clearForm = function() {
325325
return this.find( ":input" ).each(function() {
326326
this.value = "";
@@ -477,7 +477,7 @@ <h3 id="Arguments"> Arguments </h3>
477477
<p>The arguments object also has a callee property, which refers to the function you're inside of. For instance:
478478
</p>
479479
<pre><code data-lang="javascript">var awesome = function() { return arguments.callee; }
480-
awesome() == awesome // true
480+
awesome() === awesome // true
481481
</code></pre>
482482
<h3 id="Context.2C_Call_and_Apply"> Context, Call and Apply </h3>
483483
<p>In JavaScript, the variable "this" always refers to the current context. By default, "this" refers to the window object. Within a function this context can change, depending on how the function is called.

0 commit comments

Comments
 (0)