VUE_GabenParadise/node_modules/core-js/internals/this-number-value.js
2020-08-10 14:35:19 +02:00

11 lines
316 B
JavaScript

var classof = require('../internals/classof-raw');
// `thisNumberValue` abstract operation
// https://tc39.github.io/ecma262/#sec-thisnumbervalue
module.exports = function (value) {
if (typeof value != 'number' && classof(value) != 'Number') {
throw TypeError('Incorrect invocation');
}
return +value;
};