source: imaps-frontend/node_modules/es-abstract/2024/IsStrictlyEqual.js@ 79a0317

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

F4 Finalna Verzija

  • Property mode set to 100644
File size: 392 bytes
Line 
1'use strict';
2
3var SameValueNonNumber = require('./SameValueNonNumber');
4var Type = require('./Type');
5var NumberEqual = require('./Number/equal');
6
7// https://262.ecma-international.org/14.0/#sec-isstrictlyequal
8
9module.exports = function IsStrictlyEqual(x, y) {
10 if (Type(x) !== Type(y)) {
11 return false;
12 }
13 return typeof x === 'number' ? NumberEqual(x, y) : SameValueNonNumber(x, y);
14};
Note: See TracBrowser for help on using the repository browser.