mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-05 02:59:31 +08:00
14 lines
329 B
Text
14 lines
329 B
Text
'use strict';
|
|
|
|
var define = require('define-properties');
|
|
var getPolyfill = require('./polyfill');
|
|
|
|
module.exports = function shimTrimEnd() {
|
|
var polyfill = getPolyfill();
|
|
define(
|
|
String.prototype,
|
|
{ trimEnd: polyfill },
|
|
{ trimEnd: function () { return String.prototype.trimEnd !== polyfill; } }
|
|
);
|
|
return polyfill;
|
|
};
|