source: imaps-frontend/node_modules/es-abstract/2019/StrictEqualityComparison.js@ 79a0317

main
Last change on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 318 bytes
Line 
1'use strict';
2
3var Type = require('./Type');
4
5// https://262.ecma-international.org/5.1/#sec-11.9.6
6
7module.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.