|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
318 bytes
|
| Line | |
|---|
| 1 | 'use strict';
|
|---|
| 2 |
|
|---|
| 3 | var Type = require('./Type');
|
|---|
| 4 |
|
|---|
| 5 | // https://262.ecma-international.org/5.1/#sec-11.9.6
|
|---|
| 6 |
|
|---|
| 7 | module.exports = function StrictEqualityComparison(x, y) {
|
|---|
| 8 | if (Type(x) !== Type(y)) {
|
|---|
| 9 | return false;
|
|---|
| 10 | }
|
|---|
| 11 | if (typeof x === 'undefined' || x === null) {
|
|---|
| 12 | return true;
|
|---|
| 13 | }
|
|---|
| 14 | return x === y; // shortcut for steps 4-7
|
|---|
| 15 | };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.