NuclearDispersionSystem/ant-design-vue-jeecg/node_modules/core-js-pure/internals/this-number-value.js
2023-09-14 14:47:11 +08: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;
};