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

21 lines
494 B
Plaintext

'use strict';
var supportsDescriptors = require('has-property-descriptors')();
var defineDataProperty = require('define-data-property');
var getPolyfill = require('./polyfill');
module.exports = function shimStringTrim() {
var polyfill = getPolyfill();
if (String.prototype.trim !== polyfill) {
if (supportsDescriptors) {
defineDataProperty(String.prototype, 'trim', polyfill, true);
} else {
defineDataProperty(String.prototype, 'trim', polyfill);
}
}
return polyfill;
};