projecte_ionic/node_modules/string.prototype.trimend/shim.js

15 lines
329 B
JavaScript
Raw Normal View History

2022-02-09 18:30:03 +01:00
'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;
};