Sha256: 33928172f049f2f5fd7559470bb12647b7c6012b1da230e5a7e5fd8ffc1dd30e
Contents?: true
Size: 361 Bytes
Versions: 356
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
356 entries across 44 versions & 4 rubygems