Sha256: 33928172f049f2f5fd7559470bb12647b7c6012b1da230e5a7e5fd8ffc1dd30e

Contents?: true

Size: 361 Bytes

Versions: 364

Compression:

Stored size: 361 Bytes

Contents

'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
};

Version data entries

364 entries across 45 versions & 4 rubygems

Version Path
ruby2js-4.0.3 lib/tasks/testrails/node_modules/es-abstract/2019/StrictEqualityComparison.js
ruby2js-4.0.3 lib/tasks/testrails/node_modules/es-abstract/2018/StrictEqualityComparison.js
ruby2js-4.0.3 lib/tasks/testrails/node_modules/es-abstract/2017/StrictEqualityComparison.js
ruby2js-4.0.3 lib/tasks/testrails/node_modules/es-abstract/2015/StrictEqualityComparison.js