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
immosquare-cleaner-0.1.6 node_modules/es-abstract/2016/StrictEqualityComparison.js
immosquare-cleaner-0.1.6 node_modules/es-abstract/2015/StrictEqualityComparison.js
immosquare-cleaner-0.1.6 node_modules/es-abstract/5/StrictEqualityComparison.js
immosquare-cleaner-0.1.6 node_modules/es-abstract/2021/StrictEqualityComparison.js
immosquare-cleaner-0.1.6 node_modules/es-abstract/2020/StrictEqualityComparison.js
immosquare-cleaner-0.1.6 node_modules/es-abstract/2019/StrictEqualityComparison.js
immosquare-cleaner-0.1.6 node_modules/es-abstract/2018/StrictEqualityComparison.js
immosquare-cleaner-0.1.6 node_modules/es-abstract/2017/StrictEqualityComparison.js
decidim-0.26.8 packages/eslint-config/node_modules/es-abstract/2021/StrictEqualityComparison.js
decidim-0.26.8 packages/eslint-config/node_modules/es-abstract/2020/StrictEqualityComparison.js
decidim-0.26.8 packages/eslint-config/node_modules/es-abstract/2019/StrictEqualityComparison.js
decidim-0.26.8 packages/eslint-config/node_modules/es-abstract/2015/StrictEqualityComparison.js
decidim-0.26.8 packages/eslint-config/node_modules/es-abstract/2018/StrictEqualityComparison.js
decidim-0.26.8 packages/eslint-config/node_modules/es-abstract/2017/StrictEqualityComparison.js
decidim-0.26.8 packages/eslint-config/node_modules/es-abstract/2016/StrictEqualityComparison.js
decidim-0.26.8 packages/eslint-config/node_modules/es-abstract/5/StrictEqualityComparison.js
groonga-client-model-6.0.0 test/apps/rails6.1.3/node_modules/es-abstract/2020/StrictEqualityComparison.js
groonga-client-model-6.0.0 test/apps/rails6.1.3/node_modules/es-abstract/5/StrictEqualityComparison.js
groonga-client-model-6.0.0 test/apps/rails6.1.3/node_modules/es-abstract/2019/StrictEqualityComparison.js
groonga-client-model-6.0.0 test/apps/rails6.1.3/node_modules/es-abstract/2018/StrictEqualityComparison.js