source: imaps-frontend/node_modules/es-abstract/2017/SameValueNonNumber.js

main
Last change on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 402 bytes
Line 
1'use strict';
2
3var $TypeError = require('es-errors/type');
4
5var SameValue = require('./SameValue');
6
7// https://262.ecma-international.org/7.0/#sec-samevaluenonnumber
8
9module.exports = function SameValueNonNumber(x, y) {
10 if (typeof x === 'number' || typeof x !== typeof y) {
11 throw new $TypeError('SameValueNonNumber requires two non-number values of the same type.');
12 }
13 return SameValue(x, y);
14};
Note: See TracBrowser for help on using the repository browser.