refactor start
This commit is contained in:
parent
bd49791e06
commit
e46d25f0b7
16699 changed files with 2 additions and 1484887 deletions
17
home/ags/node_modules/es-abstract/2017/StrictEqualityComparison.js
generated
vendored
17
home/ags/node_modules/es-abstract/2017/StrictEqualityComparison.js
generated
vendored
|
|
@ -1,17 +0,0 @@
|
|||
'use strict';
|
||||
|
||||
var Type = require('./Type');
|
||||
|
||||
// https://262.ecma-international.org/5.1/#sec-11.9.6
|
||||
|
||||
module.exports = function StrictEqualityComparison(x, y) {
|
||||
var xType = Type(x);
|
||||
var yType = Type(y);
|
||||
if (xType !== yType) {
|
||||
return false;
|
||||
}
|
||||
if (xType === 'Undefined' || xType === 'Null') {
|
||||
return true;
|
||||
}
|
||||
return x === y; // shortcut for steps 4-7
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue