projecte_ionic/node_modules/string.prototype.trimend/shim.js
2022-02-09 18:30:03 +01:00

15 lines
329 B
JavaScript
Executable file

'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;
};