.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / internals / this-number-value.js
1 var classof = require('../internals/classof-raw');
2
3 // `thisNumberValue` abstract operation
4 // https://tc39.es/ecma262/#sec-thisnumbervalue
5 module.exports = function (value) {
6   if (typeof value != 'number' && classof(value) != 'Number') {
7     throw TypeError('Incorrect invocation');
8   }
9   return +value;
10 };