main
Last change
on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
429 bytes
|
Line | |
---|
1 | 'use strict';
|
---|
2 |
|
---|
3 | var SameValueNonNumber = require('./SameValueNonNumber');
|
---|
4 | var Type = require('./Type');
|
---|
5 | var NumberEqual = require('./Number/equal');
|
---|
6 |
|
---|
7 | // https://262.ecma-international.org/14.0/#sec-isstrictlyequal
|
---|
8 |
|
---|
9 | module.exports = function IsStrictlyEqual(x, y) {
|
---|
10 | var xType = Type(x);
|
---|
11 | var yType = Type(y);
|
---|
12 | if (xType !== yType) {
|
---|
13 | return false;
|
---|
14 | }
|
---|
15 | return xType === 'Number' ? NumberEqual(x, y) : SameValueNonNumber(x, y);
|
---|
16 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.