source: trip-planner-front/node_modules/core-js/internals/this-number-value.js@ 1ad8e64

Last change on this file since 1ad8e64 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 309 bytes
Line 
1var classof = require('../internals/classof-raw');
2
3// `thisNumberValue` abstract operation
4// https://tc39.es/ecma262/#sec-thisnumbervalue
5module.exports = function (value) {
6 if (typeof value != 'number' && classof(value) != 'Number') {
7 throw TypeError('Incorrect invocation');
8 }
9 return +value;
10};
Note: See TracBrowser for help on using the repository browser.