Files
NapCatQQ/.pnpm-store/v3/files/cb/afd9ffb3f14d476f885aa63af19a66ca62e104d9fb5719de7174901ef84c83fc35adf7548183b2212db2f46233250de59c09dc631f8c0369f3b778deb6bc8f
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

17 lines
346 B
Plaintext

'use strict';
var callBound = require('call-bound');
var $NumberValueOf = callBound('Number.prototype.valueOf');
// https://262.ecma-international.org/6.0/#sec-properties-of-the-number-prototype-object
module.exports = function thisNumberValue(value) {
if (typeof value === 'number') {
return value;
}
return $NumberValueOf(value);
};